Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
This is not Scripting Request Thread.
Please post it on Scripting Request Thread.
Posts: 2
Threads: 0
Joined: Aug 2012
Reputation:
0
warning 203: symbol is never used: "buyadmin"
Posts: 701
Threads: 91
Joined: Mar 2012
pawn Код:
CMD:announce(playerid, params[])
{
if(IsPlayerAdmin(playerid))
return SendClientMessage(playerid, "You are not allowed to use this command");
new text[64], time, style;
if (sscanf(params, "iis[64]", style, time, text)) return
SendClientMessage( playerid,"Usage: /announce <style[0-6]> <time in ms> <text>");
if (strlen(text) > 64) return
SendClientMessage(playerid,"Message too long please shorten it ");
if(style == 2) return SendClientMessage(playerid,"Bug with style 2 don't use it!");
if (style < 0 || style > 6) return
SendClientMessage(playerid,0x854900FF,"Invalid style");
if (time > 20*1000) return
SendClientMessage(playerid,"No longer than 20 seconds");
GameTextForAll(text, time, style);
return true;
}