Making things coast $ ??
#1

Hi!

I tested abit to do a weapon shop.. But I don't know how to take the money
from a player.. GivePlayerMoney.. I lookt on the sa-mp Wiki but it didn't said
something just about that.

Sorry for dumb question but was abit ago I pratcied Pawn..
And also I'm still a beginner just a little bit...
Reply
#2

You just have to add -
pawn Код:
GivePlayerMoney(playerid,-100);
https://sampwiki.blast.hk/wiki/GivePlayerMoney
Reply
#3

Oh so it should just be a " - " .. Thanks alot!.
Reply
#4

but first check if the player has the required money or he will go into -$
if(GetPlayerMoney(playerid) >= 1000)
{
GivePlayerMoney(playerid, -1000);
}
else
{
SendClientMessage(playerid, -1, "You dont have enough money");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)