SA-MP Forums Archive
[Help] /hire 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: [Help] /hire cmd (/showthread.php?tid=486331)



[Help] /hire cmd - Stm - 08.01.2014

Im trying to make /hire command. i want to be something like if i am the owner of a faction and when i type /hire in the game chat with out the name of a player or id a return to appear with text "You need the player name or id" something like that. So my question is can someone give me an example of that return or any useful tutorial


Re: [Help] /hire cmd - offon - 08.01.2014

Код:
if (sscanf(params, "ui", giveplayerid, amount))
{
* * return SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash <playerid/name> <amount>");
}
Taken from ******' sscanf. You can edit it to whatever you want, but youl'll nedd to download sscanf.