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;
- }
Advertisement
Add Comment
Please, Sign In to add comment