Problema con 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 con CheckPoints (
/showthread.php?tid=308182)
Problema con CheckPoints -
Fede.Zink - 02.01.2012
Bueno cree estos checkpoints para que pongas un comando te de roboropa = 1; luego se te cree un checkpoint cuando vas a ese te cree otro y en el Segundo checkpoint te de Dinero
Variables
pawn Код:
new roboropa[MAX_PLAYERS];
new cargoropa[MAX_PLAYERS];
pawn Код:
if(strcmp(cmd, "/asdasd123123", true) == 0)
{
roboropa[playerid] = 1;
return 1;
}
pawn Код:
if(roboropa[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "No estas en un auto!");
return 1;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 482)
{
SendClientMessage(playerid, COLOR_WHITE, "No estas en la camioneta (burrito)!");
return 1;
}
DisablePlayerCheckpoint(playerid);
roboropa[playerid] = 0;
cargoropa[playerid] = 1;
SetPlayerCheckpoint(playerid, -2263.3591,2395.1616,4.9752, 7.5);
return 1;
}
EL SEGUNDO CHECKPOINT
pawn Код:
if(cargoropa[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "No estas en un auto!");
return 1;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 482)
{
SendClientMessage(playerid, COLOR_WHITE, "No estas en la camioneta (burrito)!");
return 1;
}
DisablePlayerCheckpoint(playerid);
cargoropa[playerid] = 0;
GivePlayerCash(playerid, 5000);
return 1;
}
El dinero me lo da en el PRIMER check point no en el segundo :S cual es el prblema?..
Espero que me ayuden
Re: Problema con CheckPoints -
[O.z]Caroline - 03.01.2012
Код:
if(roboropa[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "No estas en un auto!");
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 482)
{
SendClientMessage(playerid, COLOR_WHITE, "No estas en la camioneta (burrito)!");
return 1;
}
DisablePlayerCheckpoint(playerid);
roboropa[playerid] = 0;
cargoropa[playerid] = 1;
SetPlayerCheckpoint(playerid, -2263.3591,2395.1616,4.9752, 7.5);
return 1;
}
Код:
if(cargoropa[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "No estas en un auto!");
return 1;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 482)
{
SendClientMessage(playerid, COLOR_WHITE, "No estas en la camioneta (burrito)!");
return 1;
}
DisablePlayerCheckpoint(playerid);
cargoropa[playerid] = 0;
GivePlayerCash(playerid, 5000);
return 1;
}
Respuesta: Problema con CheckPoints -
Fede.Zink - 03.01.2012
Cual es la diferencia? desime por que no la veo :/