[HELP] /Fine
#2

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:
pawn Код:
stock GiveFine(playerid, fineamount)
{
     GivePlayerMoney(playerid, GetPlayerMoney(playerid)-fineamount);
     SendClientMessage(playerid, "You were fined!");
}
Now in an command do like this:


pawn Код:
Anycommandshitfuxx(playerid, params[])
{
     new uID,amount;
     if(sscanf(params, "ui", uID,amount) return SendClientMessage(playerid, COLOR, "Usage: /fine playerid / name");
     GiveFine(uID, amount);
}
Not tested.. but should work just fine!
Reply


Messages In This Thread
[HELP] /Fine - by Karl1195 - 22.09.2010, 23:12
Re: [HELP] /Fine - by Cameltoe - 22.09.2010, 23:26
Re: [HELP] /Fine - by Karl1195 - 22.09.2010, 23:36
Re: [HELP] /Fine - by Cameltoe - 22.09.2010, 23:45
Re: [HELP] /Fine - by Karl1195 - 22.09.2010, 23:50
Re: [HELP] /Fine - by Cameltoe - 22.09.2010, 23:55

Forum Jump:


Users browsing this thread: 1 Guest(s)