Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:roubar(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, cXr, cYr, cZr))
- {
- if (APlayerData[playerid][PlayerClass] != ClassMafia) return SendClientMessage(playerid, -1, "{FF0000}Você não é um mafioso!");
- if (APlayerData[playerid][InQuadrilha] == false) return SCM(playerid, 0xFF0000FF, "Você não está em uma quadrilha!");
- if (roub == 1) return SCM(playerid, 0xFF0000FF, "Já estão roubando o cofre!");
- if( GetPVarInt( playerid, "TempoComandoAFK" ) > GetTickCount() ) return SCM( playerid, -1, "{FF0000}Espere 4 horas para roubar novamente!" );
- SetPVarInt( playerid, "TempoComandoAFK", GetTickCount() + 1000 * 60 * 60 * 4 );
- 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.");
- static Ladrao[MAX_PLAYER_NAME], sStr[128];
- GetPlayerName(playerid, Ladrao, sizeof(Ladrao));
- if(Roubando[playerid] == 1) return SendClientMessage(playerid, 0xff0000FF, "Você já está assaltando!");
- format(sStr, sizeof(sStr), "[ATENÇÃO] O Mafioso {ffffff}%s{ff0000} está roubando o cofre do Banco de LS!", Ladrao, playerid);
- SendClientMessageToAll(0xFF0000FF, sStr);
- format(sStr, sizeof(sStr), "{FF0000}Espere no local por {FFFFFF}%d{FF0000} minutos para concluir o roubo!", TempoRoubo);
- SetPlayerAttachedObject(playerid, 1, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
- cmd_robrld(playerid);
- SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+5);
- SendClientMessage(playerid, 0xC9C9C9FF, sStr);
- SetTimerEx("Roubou", 60000*TempoRoubo, false, "ii", playerid);
- //SetTimerEx("Delay_Command", 1000 * 60 * 60, false, "ii", playerid);
- Roubando[playerid] = 1;
- cmd_robrld(playerid);
- roub = 1;
- }
- return 1;
- }
- CMD:daradmin(playerid, params[])
- {
- new OtherPlayer, Level, Msg[90+48+31], Name[24], AdminName[24], OldLevel;
- if(APlayerData[playerid][LoggedIn] == false) return 0;
- if (APlayerData[playerid][PlayerLevel] < 0) return 0;
- if(AdminInfo[playerid] != jAdmin) return 0;
- if (sscanf(params, "ui", OtherPlayer, Level)) return SCM(playerid, 0xFF0000AA, "Use: /daradmin [id] [nivel]");
- if (!IsPlayerConnected(OtherPlayer)) return SCM(playerid, 0xFF0000FF, "Esse jogador não está conectado!");
- OldLevel = APlayerData[OtherPlayer][PlayerLevel];
- GetPlayerName(playerid, AdminName, sizeof(AdminName));
- GetPlayerName(OtherPlayer, Name, sizeof(Name));
- APlayerData[OtherPlayer][PlayerLevel] = Level;
- if (OldLevel == Level) return SCM(playerid, 0xFF0000FF, "Nivel dos outros jogadores não foram alterados,");
- if (OldLevel < Level)
- 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);
- if (OldLevel > Level)
- 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);
- SCMA(0x00FF00FF, Msg);
- 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, Exército, Médicos não podem participar de eventos!");
- if(PlayerInfo[playerid][NoEvento] == 1) return SendClientMessage(playerid, -1, "{FF0000}Você está num 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement