05.06.2010, 01:20
so i am trying to make a checkpoint at every rcon admin but it doesn't work :S here is the command :
i wish anyone out there know how to solve it
Код:
dcmd_admins(playerid,params[]) { #pragma unused params SetTimerEx("AdminCheck",1000,1,"i",playerid); return 1; } forward AdminCheck(playerid); public AdminCheck(playerid) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerAdmin(i)) { new Float:X,Float:Y,Float:Z; GetPlayerPos(i,X,Y,Z); CreateCheckpoint(playerid,X,Y,Z,3,10); } } } return 1; }