Problema CheckPoints - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Problema CheckPoints (
/showthread.php?tid=317558)
Problema CheckPoints -
juank - 11.02.2012
Ola estoy haciendo el JOB de camioneros pero tengo un problema con los checkpoint, cuando los pongo me anda bien
pero no termina la ruta.
Al poner el comando EJ: /INICIO me manda el primero checkpoint llego y me manda a otro llego y de hay no sigue su funciуn :desconcertado: ....
Код:
else if(PlayerInfo[playerid][pJob] == 8 && PlayerIsRuta[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid)) { Message(playerid, COLOR_GRAD2, "No estбs en un Camiуn!"); PlayerIsRuta[playerid] = 0; return 1; }
if(IsACamion(carid))
if(PlayerIsRuta[playerid] == 1)
{
PlayerIsRuta[playerid] = 2;
SetPlayerCheckpoint(playerid, 785.2174,-1603.7244,13.3828, 5.0);
}
else if(PlayerIsRuta[playerid] == 2)
{
PlayerIsRuta[playerid] = 3;
SetPlayerCheckpoint(playerid, 220.4970,17.8088,2.5781, 5.0);
}
else if(PlayerIsRuta[playerid] == 3)
{
PlayerIsRuta[playerid] = 4;
SetPlayerCheckpoint(playerid, 1074.9894,-311.2202,73.9922, 5.0);
}
else if(PlayerIsRuta[playerid] == 4)
{
PlayerIsRuta[playerid] = 5;
SetPlayerCheckpoint(playerid, 1026.6272,-1450.5524,13.5546, 15.0);
}
else if(PlayerIsRuta[playerid] == 5)
{
Message(playerid, COLOR_WHITE, "Has finalizado la entrega, ganastes {7CCCED} $350");
PlayerIsRuta[playerid] = 0;
GivePlayerMoney(playerid, 350);
SetVehicleToRespawn(carid);
}
}
y otra es como hago para que al poner /inico y al llegar al primer punto deje quieto al usuario y al camiуn cierto tiempo, como se harнa?
Saludos.
Respuesta: Problema CheckPoints -
[Nikk] - 13.02.2012
Pones en onplayerentercheckpoint
pawn Код:
TogglePlayerControllable(playerid, 0);
SetTimerEx("Cargando",5000,1,"i",playerid);
Creas la forward... y pones en la public
pawn Код:
public Cargando(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
Capas te sirva..