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)
+--- Thread: Help (
/showthread.php?tid=563338)
Help -
madalin912 - 15.02.2015
How do you give a command / vreaubani to give me 500.000$ ?
Re: Help -
Golf - 15.02.2015
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/vreaubani", cmdtext, true, 9) == 0)
{
GivePlayerMoney(playerid,500000);
return 1;
}
return 0;
}
Re: Help -
sw3das - 15.02.2015
Код:
public OnPlayerCommandText( playerid, cmdtext[] )
{
if( !strcmp( cmdtext, "/vreaubani", true ) ) // If player typed /vreaubani
return GivePlayerMoney( playerid, 500000 ); // Give him $500000
}
P.S. It appears Golf did this first -.-

D
Re: Help -
CalvinC - 15.02.2015
Use
pawn Код:
GivePlayerMoney(playerid, 500000);
In your command to give a player $500 000.
https://sampwiki.blast.hk/wiki/Function:GivePlayerMoney