SA-MP Forums Archive
/cmds - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /cmds (/showthread.php?tid=162517)



/cmds - Icripz3 - 23.07.2010

hai, ill try to script my own gamemode, but i need help to script a cmd

if i typ /cmd there should be in the chat for the player who types this: all the cmds i made

sorry for by bad english


Re: /cmds - FUNExtreme - 23.07.2010

Try using this: https://sampwiki.blast.hk/wiki/SendClientMessage


Re: /cmds - Icripz3 - 23.07.2010

yes but i want if a player typs /cmd he sees all the commands i made in pawno


Re: /cmds - Fj0rtizFredde - 23.07.2010

pawn Код:
if(strcmp(cmdtext, "/cmd", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "COMMANDS: /Cmd1 /Cmd2 /Cmd3");
//Add more here.
return 1;
}
Like that?


Re: /cmds - Icripz3 - 23.07.2010

Yea Thanks!


Re: /cmds - Johny_James - 23.07.2010

Quote:
Originally Posted by Fj0rtizFredde
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/cmd", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "COMMANDS: /Cmd1 /Cmd2 /Cmd3");
//Add more here.
return 1;
}
Like that?
xexe,not very hard