[Help]Checkpoints Thread
#2

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
Reply


Messages In This Thread
[Help]Checkpoints Thread - by mant - 01.10.2014, 09:24
Re: [Help]Checkpoints Thread - by Eth - 01.10.2014, 09:53
Re: [Help]Checkpoints Thread - by mant - 01.10.2014, 10:13
Re: [Help]Checkpoints Thread - by mant - 01.10.2014, 12:13
Re: [Help]Checkpoints Thread - by mant - 01.10.2014, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)