Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:resethelp(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- new
- id;
- if(sscanf(params, "u", id))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{00FFFF}Cu phap: {ffffff}/resethelp <Name/Playerid>");
- return 1;
- }
- else
- {
- if(IsPlayerConnected(id))
- {
- if(PlayerInfo[id][pHelpedPlayers] >= 1)
- {
- new sendername[30],giveplayer[30],string[256];
- PlayerInfo[id][pHelpedPlayers] = 0;
- Update(id,pHelpedPlayersx);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(id, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Your helped players has been reseted by admin %s.", sendername);
- SendClientMessage(id, COLOR_YELLOW, string);
- format(string, sizeof(string), "You have reseted %s helped players.", giveplayer);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "This player doesn't have helped players.");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment