Skripta koju koristim: Moja
Detaljan opis problema: Kako da namestim da neko ako koristi cmd /pee a nije u javnom wc-u da dobije wanted?
Dio skripte: //
[Pomoc] Wanted /pee
365
pregleda
5
postova
23. Sep. 2012.
23. Sep. 2012.
evo pozicija otprilike 1218.2566,-1415.1025,13.3589
i komanda /pee
i komanda /pee
if(strcmp(cmdtext, "/pee", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1225.9094,-1427.5726,13.4373) || IsPlayerInRangeOfPoint(playerid, 3, 1223.0972,-1427.5710,13.3995) || IsPlayerInRangeOfPoint(playerid, 3, 1220.7281,-1427.1439,13.3611) || IsPlayerInRangeOfPoint(playerid, 3, 1217.7255,-1427.4727,13.3828) || IsPlayerInRangeOfPoint(playerid, 3, 1215.0511,-1427.4727,13.3828))
{
SendClientMessage(playerid, COLOR_GREY, "Obavili ste nuzdu. (+15HP)!");
new Float:health;
GetPlayerHealth( playerid, health );
SetPlayerHealth(playerid, health + 15);
PlayerInfo = 0;
}
return 1;
}23. Sep. 2012.
if(strcmp(cmdtext, "/pee", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1225.9094,-1427.5726,13.4373) || IsPlayerInRangeOfPoint(playerid, 3, 1223.0972,-1427.5710,13.3995) || IsPlayerInRangeOfPoint(playerid, 3, 1220.7281,-1427.1439,13.3611) || IsPlayerInRangeOfPoint(playerid, 3, 1217.7255,-1427.4727,13.3828) || IsPlayerInRangeOfPoint(playerid, 3, 1215.0511,-1427.4727,13.3828))
{
SendClientMessage(playerid, COLOR_GREY, "Obavili ste nuzdu. (+15HP)!");
new Float:health;
GetPlayerHealth( playerid, health );
SetPlayerHealth(playerid, health + 15);
PlayerInfo = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Izvrsili ste nuzdu na javnom mjestu, neko vas je prijavio.");
new wantedlevel = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wantedlevel+1);
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava