22.09.2010, 23:26
Make an stock, this makes things a little easier for you.
You may make an define instead of this stock as defines are slightly more rapid then stocks.
anyway:
Start off by making an stock like this:
Now in an command do like this:
Not tested.. but should work just fine!
You may make an define instead of this stock as defines are slightly more rapid then stocks.
anyway:
Start off by making an stock like this:
pawn Код:
stock GiveFine(playerid, fineamount)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid)-fineamount);
SendClientMessage(playerid, "You were fined!");
}
pawn Код:
Anycommandshitfuxx(playerid, params[])
{
new uID,amount;
if(sscanf(params, "ui", uID,amount) return SendClientMessage(playerid, COLOR, "Usage: /fine playerid / name");
GiveFine(uID, amount);
}