[HELP] Setting Certain Amounts of Money At Start
#1

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!!!!!
Reply
#2

Just use
pawn Код:
GivePlayerMoney(playerid,5000);
on OnPlayerSpawn.
Reply
#3

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.
Reply
#4

Quote:

Place it in the command where they register.

Which cmd is that then plz show me i havent seen a ...
Код:
public IsPlayerRegistered
command
Reply
#5

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;
}
Reply
#6

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!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)