SA-MP Forums Archive
[Help]Checkpoints Thread - 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: [Help]Checkpoints Thread (/showthread.php?tid=539906)



[Help]Checkpoints Thread - mant - 01.10.2014

Removed Fix it with myself


Re: [Help]Checkpoints Thread - Eth - 01.10.2014

when a player enter a checkpoint for a shop or anything do that:
first, at the top of ur script put that:
pawn Код:
new Float:B4MX[MAX_PLAYERS],Float:B4MY[MAX_PLAYERS],Float:B4MZ[MAX_PLAYERS];
now when a player enter checkpoint of a shop or something:
pawn Код:
GetPlayerPos(playerid,B4MX[playerid],B4MY[playerid],B4MZ[playerid]);
//rest of the code
now when a player enter an exit checkpoint:
pawn Код:
SetPlayerPos(playerid,B4MX[playerid],B4MY[playerid],B4MZ[playerid]);
//REST OF THE CODE



Re: [Help]Checkpoints Thread - mant - 01.10.2014

Removed Fix it with myself


Re: [Help]Checkpoints Thread - mant - 01.10.2014

Removed Fix it with myself


Re: [Help]Checkpoints Thread - mant - 01.10.2014

Removed Fix it with myself