/newb CMD - 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 CMD (
/showthread.php?tid=295587)
/newb CMD -
DaRkAnGeL[NBK] - 06.11.2011
Hey,
Does anyone know how to script the /newb command with Helpers? I'm pretty sure it will be easy but i looked and couldnt find anywhere.
Thanks
Re: /newb CMD -
Sascha - 06.11.2011
what should it do?
Re: /newb CMD -
iNorton - 06.11.2011
Well /n(ewbie) command is simple, if you get this, you can make your one in no time, its similar to OOC
pawn Код:
CMD:n(playerid, params[])
{
new string[128], sendername[MAX_PLAYER_NAME], text[64];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[NEWBIE]: Newbie %s: %s", sendername, text);
SendClientMessageToAll(0xFFFFFFFF,string);
return 1;
}
Using zcmd, not sure if it work, didn't test thats simply how you do it...
Re: /newb CMD -
Sascha - 06.11.2011
it won't work..
cut out the "text[64]" at the "new" definition
and replace it in the format with "params" (so instead of "text" "params")^^