13.11.2011, 12:47
i want to make a checkpont which show to all players
i have no idea
please tell me something
to help me !
i have no idea
please tell me something
to help me !
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
SetPlayerCheckpoint(i, yourcoords and range);
}
}
stock SetCheckpointForAll(id, Float:cx, Float:cy, Float:cz, Float:csize)
{
if(id > -1)
{
if(CP_ID != -1)
DisableCheckpointForAll();
for(new i; i != MAX_PLAYERS; i++)
if(SetPlayerCheckpoint(i, cx, cy, cz, csize))
CheckPoint[i] = id;
CP_Data[3] = csize;
CP_Data[0] = cx;
CP_Data[1] = cy;
CP_Data[2] = cz;
CP_ID = id;
return true;
}
return false;
}
SetCheckpointForAll(id, Float:cx, Float:cy, Float:cz, Float:csize);
stock SetCheckpointForAll(id, Float:cx, Float:cy, Float:cz, Float:csize)
{
for(new i; i != MAX_PLAYERS; i++)SetPlayerCheckpoint(i, cx, cy, cz, csize))//foreach loop recommended!
return 1;
}