/newb Chat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /newb Chat (
/showthread.php?tid=589902)
/newb Chat -
Rafaeloo - 23.09.2015
have any system of newb when i ask something or other players the questions send only to the helpers adn admins ? no to simple players "NORMAL" ?
Exist any script like this ?
AW: /newb Chat -
Kaliber - 23.09.2015
You can do sth like this:
PHP код:
//Then every player under level 3 gets this message
stock SendToNoobChat(color, const string[])
{
for(new i=GetPlayerPoolSize()+1; --i!=-1;)
{
if(GetPlayerScore(i) < 3) SendClientMessage(i,color,string);
}
return 1;
}
Re: /newb Chat -
Rafaeloo - 23.09.2015
replace with the cmd:newb ?
AW: Re: /newb Chat -
Kaliber - 23.09.2015
Quote:
Originally Posted by Rafaeloo
replace with the cmd:newb ?
|
No you can make:
PHP код:
CMD:newb(playerid, params[])
{
return (isnull(params)) ? SendClientMessage(playerid,-1,!"Please enter a Text.") : SendToNoobChat(-1,params);
}
Re: /newb Chat -
Rafaeloo - 23.09.2015
thanks +rep