08.02.2013, 21:40
When I'm playing with friends, the only person that can use the checkpoint is player ID 0.
How can I make it to where all players can see and use checkpoints?
How can I make it to where all players can see and use checkpoints?
pawn Код:
new house;
public OnGameModeInit()
{
house = CreateDynamicCP(-1968.6255,109.9457,27.6875,1,0,0,-1,3);
return 1;
}
public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
if(checkpointid == house)
{
SendClientMessage(playerid,COLOR_RED,"Door step of house");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,365.7158,-9.8873,1001.8516);
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid,9);
}
return 1;
}