26.05.2014, 10:24
(
Последний раз редактировалось Rittik; 26.05.2014 в 10:27.
Причина: Enhanced the code a little
)
At the top add this.
Under OnPlayerConnect
Under OnPlayerDisconnect
Код:
new ActiveEvent[MAX_PLAYERS];
Код:
ActiveEvent[playerid] =0;
Код:
ActiveEvent[playerid] =0;
Код:
CMD:announceevent(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { new eventname[128],prize; if(sscanf(params,"s[128]i",eventname,prize)) { SendClientMessage(playerid,-1,"/announceevent [event name] [prize amount]"); return 1; } else { if(ActiveEvent[playerid] ==0) { ActiveEvent[playerid] =1; SendClientMessageToAll(COLOR_GREEN, "* The Adminstrirator Has Started an Event - /getjobevent to join."); } else { SendClientMessage(playerid, COLOR_GREY, " You need to start the event first (/startevent) !"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } return 1; }