03.12.2016, 15:30
PHP код:
CMD:givemoney(playerid, params[])
{
new id, money, string[128], string2[128],plName[24],aName[24];
GetPlayerName(playerid,aName,sizeof(aName));
GetPlayerName(id,plName,sizeof(plName));
if(pInfo[playerid][Adminlevel] < 4) return SCM(playerid, red, "[ERROR]: You are not allowed to use this command!");
{
if(sscanf(params,"ii",id,money)) return SCM(playerid, red,"[USAGE]: /givemoney (ID) (amount)");
else
GivePlayerMoney(id,money);
format(string, sizeof(string),"You have give player %s %d$!", plName, money);
SCM(playerid, 0xFF6347AA, string);
format(string2 ,sizeof(string2),"{E10000}[CASH]: {FFFFFF}Administrator %s has given you %d$!", aName, money);
SCM(id, 0xFF6347AA, string2);
}
return 1;
}
Also, why did you define all those colors in the gamemode, if you are not even using half of them?
You should try SQLite or MySQL, in my opinion.
