CheckPoint Problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CheckPoint Problem (
/showthread.php?tid=122269)
CheckPoint Problem -
Onyx09 - 21.01.2010
Well when i reach my checkpoints they still appear on map so its pretty anooyin it was suppost to destroy it self
if player Reaches it , can someone tell me was wrong?
Код:
if(strcmp(cmd, "/home", true) == 0) //By Ian_Stuart
{
if(PlayerInfo[playerid][pHouseX] == 0) return SendClientMessage(playerid,COLOR_GREY, "You don't even own a house!");
else if(GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid,COLOR_GREY, "You must be outside of your house to use this command!");
else
{
new Float:housex = PlayerInfo[playerid][pHouseX];
new Float:housey = PlayerInfo[playerid][pHouseY];
new Float:housez = PlayerInfo[playerid][pHouseZ];
SetPlayerCheckpoint(playerid,housex,housey,housez,2.5);
GoingHome[playerid] = 1;
return 1;
}
}
Re: CheckPoint Problem -
[HiC]TheKiller - 21.01.2010
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
}
Is that what you mean?