A cmd help - 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: A cmd help (
/showthread.php?tid=187772)
A cmd help -
HotRod - 04.11.2010
Sup guys, hotrod here.
I need abit of help in making this command which is:
You type /wallet and it says "You have -CASH- in your wallet"
The cash is the money the person has. Can anyone help me please.
I will pre-thank you now.
Cheers,
~ Hotrod
Re: A cmd help -
ColdXX - 04.11.2010
hmm try this
Код:
if(strcmp(cmdtext,"/wallet",true) == 0)
{
new string[48];
format(string, sizeof(string), "You Have $%i in your wallet!", GetPlayerMoney(playerid));
SendClientMessage(playerid, 0xFFFFFFAA, string);
return 1;
}