Advertisement
Guest User

Line 3084

a guest
Feb 7th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. CMD:nre(playerid, params[])
  2. {
  3. if(LogatPin[playerid] == 0) return SCM(playerid, -1, "Contul tau este {ff0000}blocat{ffffff}, foloseste {ff0000}/pin{ffffff} pentru a-l debloca");
  4. new id,sendername[30],giveplayer[30],string[256];
  5. if(sscanf(params, "u", id))
  6. {
  7. SendClientMessage(playerid, COLOR_WHITE, "{00FFFF}Syntax: {ffffff}/nre <Name/Playerid>");
  8. return 1;
  9. }
  10. else
  11. {
  12. if(IsPlayerConnected(id))
  13. {
  14. if(PlayerInfo[id][pNMessage] == 0) return SendClientMessage(playerid, COLOR_WHITE, "This player doesn't have a question.");
  15. if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
  16. {
  17. GetPlayerName(playerid, sendername, sizeof(sendername));
  18. GetPlayerName(id, giveplayer, sizeof(giveplayer));
  19. PlayerInfo[playerid][pNRE] = id;
  20. PlayerInfo[playerid][pHelpedPlayers]++;
  21. Update(playerid,pHelpedPlayersx);
  22. format(string, sizeof(string), "Admin/Helper %s has accepted %s question.",sendername,giveplayer);
  23. ABroadCast(COLOR_ADMCHAT, string,1);
  24. HLChat(COLOR_ADMCHAT,string);
  25. }
  26. else return SendClientMessage(playerid, COLOR_WHITE,"You aren't an admin/helper.");
  27. }
  28. else return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
  29. }
  30. return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement