Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:nre(playerid, params[])
- {
- new id,sendername[30],giveplayer[30],string[256];
- if(sscanf(params, "u", id))
- {
- SendClientMessage(playerid, COLOR_ERROR, "Usage: /nre [playerid]");
- return 1;
- }
- else
- {
- if(IsPlayerConnected(id))
- {
- if(PlayerInfo[id][pNMessage] == 0) return SendClientMessage(playerid, COLOR_WHITE, "This player doesn't have a question.");
- if(HelperDuty[playerid] == 1)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(id, giveplayer, sizeof(giveplayer));
- PlayerInfo[playerid][pNRE] = id;
- PlayerInfo[playerid][pHelpedPlayers]++;
- Update(playerid,pHelpedPlayersx);
- format(string, sizeof(string), "Question: %s has accepted %s question.",sendername,giveplayer);
- ABroadCast(COLOR_ADMCHAT, string,1);
- HLChat(COLOR_ADMIN,string);
- }
- else return SendClientMessage(playerid, COLOR_ERROR, "You are not on helper duty!");
- }
- 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