24.12.2017, 11:34
I have problem with reapeating SCM(playerid, -1, "[POSAO] {dd750d}Vratite se po ostale dzakove !");
Код:
[21:40:40] [POSAO] {dd750d}Vratite se po ostale dzakove ! [21:40:40] [POSAO] {dd750d}Vratite se po ostale dzakove ! [21:40:40] [POSAO] {dd750d}Vratite se po ostale dzakove ! [21:40:40] [POSAO] {dd750d}Vratite se po ostale dzakove ! [21:40:40] [POSAO] {dd750d}Vratite se po ostale dzakove !
Код:
if(CP[playerid] == 1111) { if(IsPlayerInRangeOfPoint(playerid, 4.0, 1709.8755,-1129.6815,24.1907)) { for(new idvozila = 280; idvozila <= 284; idvozila++) { if(DzakoviVozila[idvozila] == 1) return SCM(playerid, -1, "[POSAO] {dd750d}Istovarili ste sve dzakove !"); DisablePlayerCheckpoint(playerid); SetPlayerSpecialAction( playerid, SPECIAL_ACTION_NONE); RemovePlayerAttachedObject(playerid, 0); DzakoviVozila[idvozila] -= 1; DestroyPlayerObject(playerid,0); LoopingAnim(playerid,"MISC","PASS_RIFLE_PED",3.1,0,1,1,1,1); SCM(playerid, -1, "[POSAO] {dd750d}Vratite se po ostale dzakove !"); } } }