06.11.2013, 12:53
El problema es que al poner el comando se ejecuta el primer if pero el segundo y el resto ya no, esto solo pasa en el gm, cuando lo pongo en un fs con otro gm sirve perfectamente, uso el gm de zenon City.
Esto estб en OnPlayerEnterCheckpoint
Esto estб en OnPlayerEnterCheckpoint
Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407) { new randomss; if(FiremanJob[playerid] == 1) { FiremanJob[playerid] = 2; SetTimerEx("Descarca", 1000, 0, "i", playerid); GameTextForPlayer(playerid, "~g~Subir agua...", 2000, 5); randomss = random(sizeof(gBomberoPoints)); SetPlayerCheckpoint(playerid, gBomberoPoints[randomss][0], gBomberoPoints[randomss][1], gBomberoPoints[randomss][2],5.0); SendClientMessage(playerid,COLOR_WHITE,"* Sale del fuego!"); SetTimerEx("busroutestoptimer", 3000, false, "i", playerid); TogglePlayerControllable(playerid, 0); } else if(FiremanJob[playerid] == 2) { FiremanJob[playerid] = 3; SetTimerEx("busroutestoptimer", 3000, false, "i", playerid); TogglePlayerControllable(playerid, 0); SetPlayerCheckpoint(playerid, gBomberoPoints[randomss][0], gBomberoPoints[randomss][1], gBomberoPoints[randomss][2],5.0); SendClientMessage(playerid,COLOR_WHITE,"*Apaga el fuego y vuelve a la base!"); } else if(FiremanJob[playerid] == 3) { FiremanJob[playerid] = 4; SetPlayerCheckpoint(playerid, gBomberoPoints[randomss][2], gBomberoPoints[randomss][2], gBomberoPoints[randomss][2],5.0); GameTextForPlayer(playerid, "~g~Llenando agua...", 2000, 5); SendClientMessage(playerid,COLOR_WHITE,"* sale del fuego!"); SetTimerEx("busroutestoptimer", 3000, false, "i", playerid); TogglePlayerControllable(playerid, 0); CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);