Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:trazer(playerid, params[])
- {
- new VictimID, gString[135+48], gAdminName[24], gPlayerName[24];
- new Float:pX,
- Float:pY,
- Float:pZ;
- if (APlayerData[playerid][LoggedIn] == false) return 0;
- //if(AdminInfo[playerid] == jAdmin){
- if (APlayerData[playerid][PlayerLevel] < 3) return 0;
- if(sscanf(params, "d", VictimID)) return Mensagem(playerid, 0xFF0000FF, "USO: /trazer [ID]");
- if(!IsPlayerConnected(VictimID)) return Mensagem(playerid, 0xFF0000FF, "Jogador não Conectado");
- if(GetPlayerWantedLevel(VictimID)) return SCM(playerid, -1, "{FF0000}Este player está com nível de procurado!");
- if(APlayerData[VictimID][JobStarted] == true) return SCM(playerid, -1, "{FF0000}Este player está trabalhando, use o /levar!");
- GetPlayerName(playerid, gAdminName, sizeof(gAdminName));
- GetPlayerName(VictimID, gPlayerName, sizeof(gPlayerName));
- format(gString, sizeof(gString), "{ADD8E6}Você trouxe %s {FFFFFF}%s{ADD8E6} até você", APlayerData[VictimID][Sexo] <= 1 ? ("O jogador") : ("A jogadora"), gPlayerName);
- Mensagem(playerid, 0xFF0000FF, gString);
- format(gString, sizeof(gString), "{ADD8E6}%s {FFFFFF}%s{ADD8E6} puxou você até a posição dele!", APlayerData[playerid][PlayerLevel] >= 4 && APlayerData[playerid][Sexo] <= 1 ? ("O adminitrador") : APlayerData[playerid][PlayerLevel] == 3 && APlayerData[playerid][Sexo] <= 1 ? ("O acionista") : APlayerData[playerid][Sexo] == 2 ? ("A administradora") : ("A acionista"), gAdminName);
- Mensagem(VictimID, 0xFF0000FF, gString);
- GetPlayerPos(playerid, pX, pY, pZ);
- SetPlayerPos(VictimID, pX, pY, pZ);
- return 1;
- }
- CMD:ird(playerid, params[])
- {
- new OtherPlayer, Float:x, Float:y, Float:z, IntID, WorldID, nome[24], array[58+24];
- SendAdminText(playerid, "/ird", params);
- if (APlayerData[playerid][LoggedIn] == false) return 0;
- if (APlayerData[playerid][PlayerClass] == ClassPolice || APlayerData[playerid][PlayerClass] == ClassAssistance || APlayerData[playerid][PlayerClass] == ClassExercito || APlayerData[playerid][PlayerClass] == ClassMedico) return SCM(playerid, 0xFF0000FF, "Mecânicos, Policiais, Exercítos, Médicos não podem ser puxados!");
- if(PlayerInfo[playerid][NoEvento] == 1) return SendClientMessage(playerid, -1, "{FF0000}Você está em um evento!");
- if (InCMEvent[playerid] == true) return SCM(playerid, 0xFF0000FF, "Você está em um evento!");
- if(Roubando[playerid] == 1) return SendClientMessage(playerid, 0xff0000FF, "Você está assaltando o banco!");
- if(Loaded[playerid] == true) return SCM(playerid, 0xFF0000FF, "{FF0000}Você não pode usar '/ird' enquanto estiver trabalhando.");
- if (APlayerData[playerid][JobStarted] == true) return SCM(playerid, 0xFF0000FF, "Você não pode usar '/ird' enquanto estiver trabalhando!");
- if(IsPlayerVIP(playerid) && APlayerData[playerid][PlayerLevel] != 1) return 0;
- if (GetPlayerWantedLevel(playerid) > 1) return SCM(playerid, 0xFFFFFFFF, "{FF0000}Você não pode usar o comando /ird quando procurado.");
- if (APlayerData[playerid][PlayerJailed] != 0) return SCM(playerid, 0xFF0000FF, "Você não pode usar /ird preso!");
- if (sscanf(params, "u", OtherPlayer)) return SCM(playerid, 0xFF0000AA, "Use: /ird [id]");
- if (!IsPlayerConnected(OtherPlayer)) return SCM(playerid, 0xFF0000FF, "Esse jogador não está online.");
- // Get the location of the other player
- GetPlayerPos(OtherPlayer, x, y, z);
- IntID = GetPlayerInterior(OtherPlayer);
- WorldID = GetPlayerVirtualWorld(OtherPlayer);
- // Port the player to the given location
- SetPlayerVirtualWorld(playerid, WorldID);
- SetPlayerInterior(playerid, IntID);
- SetPlayerPos(playerid, x, y, z + 3.0);
- GetPlayerName(playerid, nome, sizeof(nome));
- format(array, sizeof(array), "{9ACD32}%s VIP diamante {FFFFFF}%s {9ACD32}foi até você", APlayerData[playerid][Sexo] <=1 ? ("O") : ("A"), nome);
- printf(array);
- SCM(OtherPlayer, -1, array);
- return 1;
- }
- CMD:ir(playerid, params[])
- {
- new OtherPlayer, Float:x, Float:y, Float:z, IntID, WorldID, nome[24], array[58+24];
- SendAdminText(playerid, "/ir", params);
- if (APlayerData[playerid][LoggedIn] == false) return 0;
- if(AdminInfo[playerid] != jAdmin) return 0;
- if (APlayerData[playerid][PlayerLevel] < 3) return 0;
- if (GetPlayerWantedLevel(playerid) > 1) return SCM(playerid, 0xFFFFFFFF, "{FF0000}Você não pode usar o comando /ir quando procurado.");
- if (APlayerData[playerid][PlayerJailed] != 0) return SCM(playerid, 0xFF0000FF, "Você não pode usar /ir preso!");
- if (sscanf(params, "u", OtherPlayer)) SCM(playerid, 0xFF0000AA, "Use: /ir [id]");
- if (!IsPlayerConnected(OtherPlayer)) return SCM(playerid, 0xFF0000FF, "Esse jogador não está online.");
- GetPlayerPos(OtherPlayer, x, y, z);
- IntID = GetPlayerInterior(OtherPlayer);
- WorldID = GetPlayerVirtualWorld(OtherPlayer);
- // Port the player to the given location
- SetPlayerVirtualWorld(playerid, WorldID);
- SetPlayerInterior(playerid, IntID);
- SetPlayerPos(playerid, x, y, z + 3.0);
- GetPlayerName(playerid, nome, sizeof(nome));
- format(array, sizeof(array), "{9ACD32}%s {FFFFFF}%s {9ACD32}foi até você", APlayerData[playerid][Sexo] <=1 ? ("O administrador") : ("A administradora"), nome);
- printf(array);
- SCM(OtherPlayer, -1, array);
- return 1;
- }
Add Comment
Please, Sign In to add comment