[HELP] Setting Certain Amounts of Money At Start - 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: [HELP] Setting Certain Amounts of Money At Start (
/showthread.php?tid=99186)
[HELP] Setting Certain Amounts of Money At Start -
Tigerbeast11 - 26.09.2009
Hey guys me again!!!!!
I have a really annoying question which is bugging me!!!!
The question is:
How can i set certain amounts of money for each player (like, say when the player connects, i want him to have $5000, and if he /registers then i want him to have $10000) i used some sort of code, but it kept on resetting the players cash to $5000 when ever he connected.... :@ plz help guys!!!!!
Re: [HELP] Setting Certain Amounts of Money At Start -
Amit_B - 26.09.2009
Just use
pawn Код:
GivePlayerMoney(playerid,5000);
on OnPlayerSpawn.
Re: [HELP] Setting Certain Amounts of Money At Start -
Abernethy - 26.09.2009
Quote:
Originally Posted by Amit B
Just use
pawn Код:
GivePlayerMoney(playerid,5000);
on OnPlayerSpawn.
|
Wouldn't work. You could just /kill and get another $4,900. Place it in the command where they register.
Re: [HELP] Setting Certain Amounts of Money At Start -
Tigerbeast11 - 26.09.2009
Quote:
Place it in the command where they register.
|
Which cmd is that then plz show me i havent seen a ...
Код:
public IsPlayerRegistered
command
Re: [HELP] Setting Certain Amounts of Money At Start -
ilikepie2221 - 26.09.2009
Quote:
Originally Posted by Tigerbeast11
Quote:
Place it in the command where they register.
|
Which cmd is that then plz show me i havent seen a ...
Код:
public IsPlayerRegistered
command
|
pawn Код:
ExampleOfARegisterCommand(playerid,someparameters)
{
// Some code in your register command
GivePlayerMoney(playerid,5000);
return 1;
}
Re: [HELP] Setting Certain Amounts of Money At Start -
Tigerbeast11 - 26.09.2009
Quote:
Quote
Place it in the command where they register.
Which cmd is that then plz show me i havent seen a ...
Code:
public IsPlayerRegistered
command
PAWN Code:
ExampleOfARegisterCommand(playerid,someparameters)
{
// Some code in your register command
GivePlayerMoney(playerid,5000);
return 1;
}
|
Im still not getting it
Please explain more!!!!