Announce Command.
#2

At the top add this.
Код:
new ActiveEvent[MAX_PLAYERS];
Under OnPlayerConnect
Код:
ActiveEvent[playerid] =0;
Under OnPlayerDisconnect
Код:
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;
}
Reply


Messages In This Thread
Announce Command. - by Clad - 26.05.2014, 10:14
Re: Announce Command. - by Rittik - 26.05.2014, 10:24
Re: Announce Command. - by Clad - 26.05.2014, 10:36
Re: Announce Command. - by Rittik - 26.05.2014, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)