SHARE
TWEET

Untitled

a guest Jan 11th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:a(playerid, params[])
  2. {
  3.     if (!PlayerData[playerid][pAdmin])
  4.         return SendErrorMessage(playerid, "Você não é um admin.");
  5.  
  6.     if (isnull(params))
  7.         return SendSyntaxMessage(playerid, "/a [texto]");
  8.  
  9.     if (strlen(params) > 64) {
  10.         SendAdminAlert(COLOR_ADMINCHAT, "[Admin] %s %s %s: %.64s", cargoAdm(playerid), PlayerData[playerid][pNomeOOC], ReturnName(playerid, 0), params);
  11.         SendAdminAlert(COLOR_ADMINCHAT, "...%s **", params[64]);
  12.     }
  13.     else {
  14.         SendAdminAlert(COLOR_ADMINCHAT, "[Admin] %s %s (%s): %.64s", cargoAdm(playerid), ReturnName(playerid, 0), PlayerData[playerid][pNomeOOC], params);
  15.     }
  16.     return 1;
  17. }
  18.  
  19. CMD:at(playerid, params[])
  20. {
  21.     if (!PlayerData[playerid][pTester] && !PlayerData[playerid][pAdmin])
  22.         return SendErrorMessage(playerid, "Você não é um tester.");
  23.  
  24.     if (isnull(params))
  25.         return SendSyntaxMessage(playerid, "/at [texto]");
  26.  
  27.     if (strlen(params) > 64)
  28.     {
  29.         if (PlayerData[playerid][pAdmin])
  30.             SendTesterMessage(COLOR_LIGHTRED, "[Tester/Admin] {D2B48C}Admin %s (%s): %.64s", ReturnName(playerid, 0), PlayerData[playerid][pNomeOOC], params);
  31.  
  32.         else
  33.             SendTesterMessage(COLOR_LIGHTRED, "[Tester/Admin] {D2B48C}Tester %s (%s): %.64s", ReturnName(playerid, 0), PlayerData[playerid][pNomeOOC], params);
  34.  
  35.         SendTesterMessage(COLOR_LIGHTRED, "...%s **", params[64]);
  36.     }
  37.     else
  38.     {
  39.         if (PlayerData[playerid][pAdmin])
  40.             SendTesterMessage(COLOR_LIGHTRED, "[Tester/Admin] {D2B48C}Admin %s (%s): %.64s", ReturnName(playerid, 0), PlayerData[playerid][pNomeOOC], params);
  41.  
  42.         else SendTesterMessage(COLOR_LIGHTRED, "[Tester/Admin] {D2B48C}Tester %s (%s): %.64s", ReturnName(playerid, 0), PlayerData[playerid][pNomeOOC], params);
  43.     }
  44.     return 1;
  45. }
RAW Paste Data
Top