28.04.2017, 13:09
Code:
CMD:givemoney(playerid, params[]) { new gpd, money; if(PlayerInfo[playerid][pAdmin] > 4 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x00FFFFFFFF, "You don't have enough permissions to use this command"); { if(sscanf(params, "ri", gpd, money)) return SendClientMessage(playerid, 0x00FFFFFFFF, "SYNTAX: /givemoney (player id) (value)"); { GivePlayerMoney(gpd, money); new name[MAX_PLAYERS]; new name2[MAX_PLAYERS]; new string[128]; new string2[129]; format(string, sizeof(string), "Admin %s Has Given You Money %i", GetPlayerName(playerid, name, sizeof(name)), money); SendClientMessage(gpd,0x00FFFFFFFF, string); format(string2, sizeof(string2), "You Have Given %s %i Money", GetPlayerName(gpd, name2, sizeof(name2)), money); SendClientMessage(playerid,0x00FFFFFFFF, string2); } } return 1; }
please help me someone