Advertisement
Gguiz007

Untitled

May 9th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.76 KB | None | 0 0
  1. CMD:roubar(playerid)
  2. {
  3. if(IsPlayerInRangeOfPoint(playerid, 3.0, cXr, cYr, cZr))
  4. {
  5. if (APlayerData[playerid][PlayerClass] != ClassMafia) return SendClientMessage(playerid, -1, "{FF0000}Você não é um mafioso!");
  6. if (APlayerData[playerid][InQuadrilha] == false) return SCM(playerid, 0xFF0000FF, "Você não está em uma quadrilha!");
  7. if (roub == 1) return SCM(playerid, 0xFF0000FF, "Já estão roubando o cofre!");
  8. if( GetPVarInt( playerid, "TempoComandoAFK" ) > GetTickCount() ) return SCM( playerid, -1, "{FF0000}Espere 4 horas para roubar novamente!" );
  9. SetPVarInt( playerid, "TempoComandoAFK", GetTickCount() + 1000 * 60 * 60 * 4 );
  10. if ((APlayerData[playerid][InQuadrilha] == false) && (AQuadrilhas[Quadrilha][Members][0] < 4) && (AQuadrilhas[Quadrilha[Members][1]]) < 4) (AQuadrilhas[Quadrilha[Members][2]]) < 4) (AQuadrilhas[Quadrilha[Members][3]]) < 4)) return SCM(playerid, 0xff0000FF, "Você precisa 4 membros para iniciar uma roubo.");
  11. static Ladrao[MAX_PLAYER_NAME], sStr[128];
  12. GetPlayerName(playerid, Ladrao, sizeof(Ladrao));
  13. if(Roubando[playerid] == 1) return SendClientMessage(playerid, 0xff0000FF, "Você já está assaltando!");
  14. format(sStr, sizeof(sStr), "[ATENÇÃO] O Mafioso {ffffff}%s{ff0000} está roubando o cofre do Banco de LS!", Ladrao, playerid);
  15. SendClientMessageToAll(0xFF0000FF, sStr);
  16. format(sStr, sizeof(sStr), "{FF0000}Espere no local por {FFFFFF}%d{FF0000} minutos para concluir o roubo!", TempoRoubo);
  17. SetPlayerAttachedObject(playerid, 1, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
  18. cmd_robrld(playerid);
  19. SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+5);
  20. SendClientMessage(playerid, 0xC9C9C9FF, sStr);
  21. SetTimerEx("Roubou", 60000*TempoRoubo, false, "ii", playerid);
  22. //SetTimerEx("Delay_Command", 1000 * 60 * 60, false, "ii", playerid);
  23. Roubando[playerid] = 1;
  24. cmd_robrld(playerid);
  25. roub = 1;
  26. }
  27. return 1;
  28. }
  29. CMD:daradmin(playerid, params[])
  30. {
  31. new OtherPlayer, Level, Msg[90+48+31], Name[24], AdminName[24], OldLevel;
  32. if(APlayerData[playerid][LoggedIn] == false) return 0;
  33. if (APlayerData[playerid][PlayerLevel] < 0) return 0;
  34. if(AdminInfo[playerid] != jAdmin) return 0;
  35. if (sscanf(params, "ui", OtherPlayer, Level)) return SCM(playerid, 0xFF0000AA, "Use: /daradmin [id] [nivel]");
  36. if (!IsPlayerConnected(OtherPlayer)) return SCM(playerid, 0xFF0000FF, "Esse jogador não está conectado!");
  37.  
  38. OldLevel = APlayerData[OtherPlayer][PlayerLevel];
  39. GetPlayerName(playerid, AdminName, sizeof(AdminName));
  40. GetPlayerName(OtherPlayer, Name, sizeof(Name));
  41. APlayerData[OtherPlayer][PlayerLevel] = Level;
  42. if (OldLevel == Level) return SCM(playerid, 0xFF0000FF, "Nivel dos outros jogadores não foram alterados,");
  43.  
  44. if (OldLevel < Level)
  45. format(Msg, 240, "{9ACD32}%s jogador%s {FFFFFF}%s{9ACD32} foi promovid%s a {FFFFFF}%s{9ACD32} por {FFFFFF}%s", APlayerData[playerid][Sexo] <= 1 ? ("O") : ("A"), APlayerData[playerid][Sexo] <= 1 ? ("") : ("a"), Name, APlayerData[playerid][Sexo] <= 1 ? ("o") : ("a"), AdminLevelName[Level], AdminName);
  46. if (OldLevel > Level)
  47. format(Msg, 240, "{FF0000}%s jogador%s {FFFFFF}%s{FF0000} foi rebaixad%s a {FFFFFF}%s{FF0000} por {FFFFFF}%s", APlayerData[playerid][Sexo] <= 1 ? ("O") : ("A"), APlayerData[playerid][Sexo] <= 1 ? ("") : ("a"), Name, APlayerData[playerid][Sexo] <= 1 ? ("o") : ("a"), AdminLevelName[Level], AdminName);
  48. SCMA(0x00FF00FF, Msg);
  49.  
  50. return 1;
  51. }
  52. CMD:ird(playerid, params[])
  53. {
  54. new OtherPlayer, Float:x, Float:y, Float:z, IntID, WorldID, nome[24], array[58+24];
  55.  
  56. SendAdminText(playerid, "/ird", params);
  57. if (APlayerData[playerid][LoggedIn] == false) return 0;
  58. if (APlayerData[playerid][PlayerClass] == ClassPolice || APlayerData[playerid][PlayerClass] == ClassAssistance || APlayerData[playerid][PlayerClass] == ClassExercito || APlayerData[playerid][PlayerClass] == ClassMedico) return SCM(playerid, 0xFF0000FF, "Mecânicos, Policiais, Exército, Médicos não podem participar de eventos!");
  59. if(PlayerInfo[playerid][NoEvento] == 1) return SendClientMessage(playerid, -1, "{FF0000}Você está num evento!");
  60. if (InCMEvent[playerid] == true) return SCM(playerid, 0xFF0000FF, "Você está em um evento!");
  61. if(Roubando[playerid] == 1) return SendClientMessage(playerid, 0xff0000FF, "Você está assaltando o banco!");
  62. if(Loaded[playerid] == true) return SCM(playerid, 0xFF0000FF, "{FF0000}Você não pode usar '/ird' enquanto estiver trabalhando.");
  63. if (APlayerData[playerid][JobStarted] == true) return SCM(playerid, 0xFF0000FF, "Você não pode usar '/ird' enquanto estiver trabalhando!");
  64. if(IsPlayerVIP(playerid) && APlayerData[playerid][PlayerLevel] != 1) return 0;
  65. if (GetPlayerWantedLevel(playerid) > 1) return SCM(playerid, 0xFFFFFFFF, "{FF0000}Você não pode usar o comando /ird quando procurado.");
  66. if (APlayerData[playerid][PlayerJailed] != 0) return SCM(playerid, 0xFF0000FF, "Você não pode usar /ird preso!");
  67. if (sscanf(params, "u", OtherPlayer)) return SCM(playerid, 0xFF0000AA, "Use: /ird [id]");
  68. if (!IsPlayerConnected(OtherPlayer)) return SCM(playerid, 0xFF0000FF, "Esse jogador não está online.");
  69.  
  70. // Get the location of the other player
  71. GetPlayerPos(OtherPlayer, x, y, z);
  72. IntID = GetPlayerInterior(OtherPlayer);
  73. WorldID = GetPlayerVirtualWorld(OtherPlayer);
  74. // Port the player to the given location
  75. SetPlayerVirtualWorld(playerid, WorldID);
  76. SetPlayerInterior(playerid, IntID);
  77. SetPlayerPos(playerid, x, y, z + 3.0);
  78.  
  79. GetPlayerName(playerid, nome, sizeof(nome));
  80. format(array, sizeof(array), "{9ACD32}%s VIP diamante {FFFFFF}%s {9ACD32}foi até você.", APlayerData[playerid][Sexo] <=1 ? ("O") : ("A"), nome);
  81. printf(array);
  82. SCM(OtherPlayer, -1, array);
  83.  
  84. return 1;
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement