09.06.2010, 09:37
dcmd_countdown(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 0) {
if(CountDown == -1) {
CountDown = 6;
SetTimer("countdown",1000,0);
return CMDMessageToAdmins(playerid,"COUNTDOWN");
} else return SendClientMessage(playerid,red,"ERROR: Countdown in progress");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
I just want to make that a simple command like /countdown or /cd wich is available for all players, and not dcmd.
I also want to dont freeze player while use it.
Need help!
#pragma unused params
if(PlayerInfo[playerid][Level] >= 0) {
if(CountDown == -1) {
CountDown = 6;
SetTimer("countdown",1000,0);
return CMDMessageToAdmins(playerid,"COUNTDOWN");
} else return SendClientMessage(playerid,red,"ERROR: Countdown in progress");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
I just want to make that a simple command like /countdown or /cd wich is available for all players, and not dcmd.
I also want to dont freeze player while use it.
Need help!