Money just once?
#1

how i can make ''OnPlayerSpawn'' ''GivePlayerMoney(playerid,8000);'' but i want to make this just first time when player spawn, cuz atm i have if player spawn he get 8000 when he die adn spawn again he will get + 8000 ... how to make he get just first time 8000 when he come on server ?

ty for any help
Reply
#2

Over Script.
pawn Код:
new bool:FirstSpawn[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
FirstSpawn[playerid]=true;
OnPlayerSpawn
pawn Код:
if(FirstSpawn[playerid]==true)
{
GivePlayerMoney(playerid, 8000);
FirstSpawn[playerid]=false;
}
Here you go.

Btw.: Do you remember me?
Reply
#3

yes i remember u , ty i will try
Reply
#4

Or make it like i did, put it under OnPlayerConnect. Then you get the money when you connect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)