01.10.2009, 18:00
Someone can help me for create a red checkpoint in a place,and when u go inside that checkpoint u be teleported in another place??
new Checkpoint[MAX_PLAYERS];
public OnGameModeInIt()
{
Checkpoint = SetPlayerCheckpoint(playerid, Float:x,Float:y,Float:z,8);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SetPlayerPos(playerid,X,Y,Z); //The place you want to TP to
}
return 1;
}
Originally Posted by caldaia
thx soo much,i try that code
![]() |
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
I think the 8 will be fine |
Originally Posted by 3xPloSioNxXx
Quote:
![]() |
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
Quote:
|