#1

i need a script that when the money gose lower than 0 they get killed coz i am makeing a weapon list where u can buy stuff from but when they do it go into -
So if someone could help me that would be nice
Reply
#2

Use
pawn Код:
if (GetPlayerMoney(playerid) >= /*AMOUNT OF MONEY HERE*/)
{
    GivePlayerWeapon(playerid, /*WEAPONID*/, /*AMMO*/);
}
Reply
#3

That Did Nothing i need it so that they have to get that ammount of money to buy the weapon or if they buy the weapon and go into the minuse then they get killed
Reply
#4

Just add an IF Condition like if plyers doesnt have enough money, he should get the message that "You dont have enough money to buy weapons". You have to do this in th buy menu of weapons.

Lol..if confused then PM me....I will 100% help you .
Reply
#5

pawn Код:
if (GetPlayerMoney(playerid) >= /*AMOUNT OF MONEY HERE*/)
{
    GivePlayerWeapon(playerid, /*WEAPONID*/, /*AMMO*/);
}
else
{
    SendClientMessage(playerid, COLOR_RED, "*** You do not have enough money for this ! ***");
}
Reply
#6

it gives me this error

C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\FRAS2.pwn(989) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\FRAS2.pwn(991) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#7

nvm i got it working thx for the help man
Reply
#8

No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)