Newbie system. - 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: Newbie system. (
/showthread.php?tid=615724)
Newbie system. -
alexkeward - 26.08.2016
Has anyone got a quick /newbie system that i could use?, i tried to take one from another script i have but it kept giving me errors and well im not equipped with the right skill set to fix said errors.
Re: Newbie system. -
BrianS123 - 26.08.2016
You mean /newbie chat?
Код:
CMD:newbie(playerid, params[])
{
new string[128], name[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /newbie [question].");
else
{
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string), "Newbie %s: %s", name, params);
SendClientMessageToAll(COLOR_NEWBIE, string);
}
return 1;
}
Not tested, but it will be okey..
Re: Newbie system. -
alexkeward - 26.08.2016
Quote:
Originally Posted by BrianS123
You mean /newbie chat?
Код:
CMD:newbie(playerid, params[])
{
new string[128], name[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /newbie [question].");
else
{
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string), "Newbie %s: %s", name, params);
SendClientMessageToAll(COLOR_NEWBIE, string);
}
return 1;
}
Not tested, but it will be okey..
|
Yeah like that, Il test it now, Thank you.
Re: Newbie system. -
alexkeward - 26.08.2016
Yes it works. Thank you very much.