Leave Checkpoint - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Leave Checkpoint (
/showthread.php?tid=519315)
Leave Checkpoint -
Miladajir - 13.06.2014
hello
When a player is out of the checkpoint.
Nothing happens.
Where is the problem?
Thanks
Код:
public OnPlayerLeaveCheckpoint(playerid)
{
if(CPS_IsPlayerInCheckpoint(playerid, CP_ROB_shop))
{
if(ROB_shop[playerid] >= 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Failed.");
ROB_shop[playerid] = 0;
}
return 1;
}
return 1;
}
Re: Leave Checkpoint -
Faisal_khan - 13.06.2014
pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
if(CPS_IsPlayerInCheckpoint(playerid, CP_ROB_shop))
{
if(ROB_shop[playerid] >= 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Failed.");
ROB_shop[playerid] = 0;
}
}
return 1;
}
Should work I guess.
Re: Leave Checkpoint -
Miladajir - 14.06.2014
I find problem.
thanks for help
Код:
public OnPlayerLeaveCheckpoint(playerid)
{
if(ROB_shop[playerid] >= 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Failed.");
ROB_shop[playerid] = 0;
}
return 1;
}