Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:givegp(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new gp, id, string[256];
- if(sscanf(params, "ud", id, gp)) return SendClientMessage(playerid, COLOR_GREY, "{0077ED}Syntax: {FFFFFF}/givegp <Name/Playerid> <ammount>");
- {
- PlayerInfo[id][pGift] += gp;
- GetPlayerName(id, PlayerName, MAX_PLAYER_NAME);
- Update(playerid,pGiftx);
- format(string, sizeof(string), "You have gave %s %d GPoints.", PlayerName, gp);
- SendClientMessage(playerid, COLOR_RED, string);
- GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
- format(string, sizeof(string), "Administrator %s has gave you %d GPoints.", PlayerName, gp);
- SendClientMessage(id, COLOR_RED, string);
- }
- }
- else return SendClientMessage(playerid, COLOR_RED, AdminOnly);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement