11.09.2011, 19:22
Quote:
First of all, we are going to use DCMD, for that u will have to download dini. The chance that u already have dini is pretty big, (especially if you have downloaded an admin script for your server already) If you don't have dini yet, just look for a download link on the internet, or download LuxAdmin, it has the dini file included. |
Quote:
Now that you have your dini, thing u are going to add this on top of your GM: #include <dini> it should be under #include <a_samp> or under your other includes that you have installed yet. |
Quote:
Next we need a define pawn Code:
anyways, this is just one define u need in your script to use dini. |
pawn Code:
if (sscanf(params, "ii", ID,amount)) return SendClientMessage(playerid, 0xff0000aa, "* Usage: /pay [playerid/name] [amount]");
pawn Code:
GetPlayerName(ID, name2, sizeof(name2));
format(string8,sizeof(string8),"{FFFF00}|- You have paid %s $%i -|",name2,amount);
SendClientMessageToAll(COLOR_RED,string8);
GetPlayerName(playerid, name, sizeof(name));
format(string7,sizeof(string7),"{FFFF00}* %s(%d) Has paid you: $%i",name,playerid,amount);
SendClientMessageToAll(COLOR_RED,string7);