Hello.
I scripted this command "/getall" to bring all the players to me, But when i use it, It only counts, It doesn't bring them to me, Can someone fix it and post it fixed here ?
Код:
dcmd_getall(playerid, params[])
{
if(AdminLevel[playerid] < 4)return SendClientMessage(playerid,-1,"{AFAFAF}[Error]:{FFFFFF} You do not have the right admin level to use this command.");
new string[128], time;
if(sscanf(params,"d",time))
{
SendClientMessage(playerid, -1, ""COL_USAGE"[SYNTAX]{FFFFFF} /getall [TIME]");
return 1;
}
KillTimer(CountDownTimer);
GetAllHere(playerid);
CountDownVar = time + 1;
CountDownTimer = SetTimer("CountDown", 1000, true);
format(string,sizeof(string),"%s(%d) has used /getall", PlayerName(playerid),playerid);
SendALogMessage(string);
return 1;
}