11.12.2009, 19:21
how can i set checkpoint to everyone in the server who comes online?
SetPlayerCheckpoint(playerid,Float:x,Float:y,Float:z,Float:size);
Originally Posted by ZzZzZ
i have it with timer...
|
for(new i=0; i<=MAX_PLAYERS; i++)SetPlayerCheckpoint(i,Float:x,Float:y,Float:z,Float:size);
new bool:CheckpointActive=false;
CheckpointActive=true;
if(CheckpointActive==true)SetPlayerCheckpoint(i,Float:x,Float:y,Float:z,Float:size);
CheckpointActive=false;
public OnPlayerConnect(playerid)
{
SetTimerEx("SetCP", 1000, false, "d", playerid);
}
forward SetCP(playerid);
public SetCP(playerid)
{
SetPlayerCheckpoint(playerid,Float:x,Float:y,Float:z,Float:size);
}