04.10.2010, 10:04
Hellou, i have one big problem with checkpoints with 150+ player online on server, checkpoints wont show on map radar. I have roleplay server, biggest on balkan and midle europe, so i have much players...
I work with checkpoint like this:
onplayerconnect:
and main stock that called every tim when i must show checkpoint:
and for disable:
so i alway check if cp is showed for player...
any suggestion?
I work with checkpoint like this:
Code:
new bool:CPIgacevPrikazan[MAX_PLAYERS]; ---> for checking if checkpoint are showed for player
Code:
CPIgacevPrikazan[playerid] = false;
Code:
stock D_SetPlayerCheckpoint(playerid,Float:x,Float:y,Float:z,Float:size) { if(CPIgacevPrikazan[playerid]==true) { DisablePlayerCheckpoint(playerid); CPIgacevPrikazan[playerid]=false; } SetPlayerCheckpoint(playerid,Float:x,Float:y,Float:z,Float:size); CPIgacevPrikazan[playerid]=true; return true; }
Code:
stock D_DisablePlayerCheckpoint(playerid) { if(CPIgacevPrikazan[playerid]==true) { DisablePlayerCheckpoint(playerid); CPIgacevPrikazan[playerid]=false; } return true; }
any suggestion?