17.10.2015, 21:32
Hello Guys.
I have a roleplay server.
the newb chat is for all EX : newbie: TEST , and the answer againg NEWB : TEST.
i need a script when you ask something the question to go on helpers. like : Qesution Sended : TEST , Answer from Helper : TEST.
CODE
#Sorry for bad english
I have a roleplay server.
the newb chat is for all EX : newbie: TEST , and the answer againg NEWB : TEST.
i need a script when you ask something the question to go on helpers. like : Qesution Sended : TEST , Answer from Helper : TEST.
CODE
PHP код:
CMD:newb(playerid, params[]) {
if(gPlayerLogged[playerid] == 0)
return SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
if(AntiAdv(playerid, params)) return 1;
if((nonewbie) && PlayerInfo[playerid][pAdmin] < 1)
return SendClientMessage(playerid, COLOR_GRAD2, "The newbie chat channel has been disabled by an Admin!");
if(gNewbie[playerid] == 1)
return SendClientMessage(playerid, COLOR_GREY, "You have the channel toggled, /tognewbie to re-enable!");
if(isnull(params))
return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/newb)ie [text]");
if(PlayerInfo[playerid][pNMute] == 1)
return SendClientMessage(playerid, COLOR_GREY, "You're muted from the newbie chat channel.");
new
string[128];
if(NewbieTimer[playerid] > 0) {
format(string, sizeof(string), "You must wait %d seconds before speaking again in this channel.", NewbieTimer[playerid]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}