Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* FILTERSCRIPT FEITO POR: FÁBIO STRALIOTI
- Projetos & Trabalhos www.fabiostralioti.atwebpages.com
- Curta minha Página https://www.facebook.com/FS-Encomendas-Pawno-162143720796029/timeline/?ref=hl
- */
- #include <a_samp>
- #include <zcmd>
- #include <sscanf>
- #include <dof2>
- enum pInfo {
- pVip
- };
- new Stralioti[MAX_PLAYERS][pInfo];
- new Float:X, Float:Y, Float:Z, Float: Angle;
- new stralioti[128];
- new Id;
- new Level;
- new Texto;
- #define VIDA 1
- #define VEH 2
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Sistema de VIP por leveis feito por: Fábio Stralioti");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new salvamentovip[34];
- format(salvamentovip, sizeof(salvamentovip), "Vips/%s.ini", PlayerNome(playerid));
- return 1;
- }
- public OnPlayerDisconnect(playerid) {
- new salvamentovip[34];
- format(salvamentovip, sizeof(salvamentovip), "Vips/%s.ini", PlayerNome(playerid));
- if (!DOF2_FileExists(salvamentovip)) {
- DOF2_CreateFile(salvamentovip);
- DOF2_SetInt(salvamentovip, "Level", Stralioti[playerid][pVip]);
- DOF2_SaveFile();
- }
- else {
- DOF2_SetInt(salvamentovip, "Level", Stralioti[playerid][pVip]);
- DOF2_SaveFile();
- }
- return 0;
- }
- public OnFilterScriptExit()
- {
- DOF2_Exit();
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == VIDA)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerHealth(playerid, 10);
- }
- if(listitem == 1)
- {
- SetPlayerHealth(playerid, 20);
- }
- if(listitem == 2)
- {
- SetPlayerHealth(playerid, 30);
- }
- if(listitem == 3)
- {
- SetPlayerHealth(playerid, 40);
- }
- if(listitem == 4)
- {
- SetPlayerHealth(playerid, 50);
- }
- if(listitem == 5)
- {
- SetPlayerHealth(playerid, 60);
- }
- if(listitem == 6)
- {
- SetPlayerHealth(playerid, 70);
- }
- if(listitem == 7)
- {
- SetPlayerHealth(playerid, 80);
- }
- if(listitem == 8)
- {
- SetPlayerHealth(playerid, 90);
- }
- if(listitem == 9)
- {
- SetPlayerHealth(playerid, 100);
- }
- }
- }
- if(dialogid == VEH)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(560, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um sultan para deleta-lo use /dc");
- }
- if(listitem == 1)
- {
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(411, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um infernus para deleta-lo use /dc");
- }
- if(listitem == 2)
- {
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(522, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um nrg-500 para deleta-lo use /dc");
- }
- if(listitem == 3)
- {
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(431, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um onibus para deleta-lo use /dc");
- }
- if(listitem == 4)
- {
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(506, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um super-gt para deleta-lo use /dc");
- }
- if(listitem == 5)
- {
- if(Stralioti[playerid][pVip] <= 2) return SendClientMessage(playerid, -1,"Você não tem VIP level 2");
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(434, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um hotknife para deleta-lo use /dc");
- }
- if(listitem == 6)
- {
- if(Stralioti[playerid][pVip] <= 3) return SendClientMessage(playerid, -1,"Você não tem VIP level 3");
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(451, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um turismo para deleta-lo use /dc");
- }
- if(listitem == 7)
- {
- if(Stralioti[playerid][pVip] <= 3) return SendClientMessage(playerid, -1,"Você não tem VIP level 3");
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(520, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um hydra para deleta-lo use /dc");
- }
- if(listitem == 8)
- {
- if(Stralioti[playerid][pVip] <= 3) return SendClientMessage(playerid, -1,"Você não tem VIP level 3");
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- CreateVehicle(535, X+5, Y, Z+1, Angle, random(100), random(100), -1);
- SendClientMessage(playerid, -1,"Você criou um Slamvan para deleta-lo use /dc");
- }
- }
- }
- return 1;
- }
- CMD:setvip(playerid, params[]) {
- new straliotii[128];
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não é um Administrador Logado na RCON");
- if(sscanf(params, "ud", Id, Level)) return SendClientMessage(playerid, -1,"Use: /setvip [id][Level]");
- if(Level < 0 || Level > 3) return SendClientMessage(playerid, -1, "Level inválido use de 1 á 3");
- if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, -1, "Este jogador não está online");
- format(straliotii, sizeof(straliotii), "O %s deu VIP para o %s Level: %s", PlayerNome(playerid), PlayerNome(Id), Level);
- SendClientMessageToAll(-1, straliotii);
- Stralioti[Id][pVip] = Level;
- return 1;
- }
- CMD:pegarvida(playerid) {
- if(Stralioti[playerid][pVip] <= 0) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- ShowPlayerDialog(playerid, VIDA, DIALOG_STYLE_LIST, "Vidas", "10%\n20%\n30%\n40%\n50%\n60%\n70%\n80%\n90%\n100%", "Escolher", "Sair");
- return 1;
- }
- CMD:chatvip(playerid, params[]) {
- new texto;
- if(Stralioti[playerid][pVip] <= 0) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- {
- for( new i; i < MAX_PLAYERS; i++ ) {
- if(sscanf(params, "s", texto)) return SendClientMessage(playerid, -1,"Use /chatvip [texto]");
- format(stralioti, sizeof(stralioti),"Chat Vip: %s: %s", PlayerNome(playerid),texto);
- SendClientMessage(i,-1,stralioti);
- }
- }
- return 1;
- }
- CMD:veh(playerid) {
- if(Stralioti[playerid][pVip] <= 0) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- ShowPlayerDialog(playerid, VEH, DIALOG_STYLE_LIST, "VEH", "Sultan\nInfernus\nNRG-500\nOnibus\nSuper-GT\nHotknife\nTurismo\nHydra\nSlamvan", "Escolher", "Sair");
- return 1;
- }
- CMD:dc(playerid) {
- if(Stralioti[playerid][pVip] <= 0) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1,"Você não está em um veículo");
- new veiculo;
- veiculo = GetPlayerVehicleID(playerid);
- DestroyVehicle(veiculo);
- SendClientMessage(playerid, -1,"Você deletou o veiculo");
- return 1;
- }
- CMD:jetpack(playerid) {
- if(Stralioti[playerid][pVip] <= 0) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- SetPlayerSpecialAction(playerid, 2);
- format(stralioti, sizeof(stralioti),"O VIP %s criou um jetpack", PlayerNome(playerid));
- SendClientMessageToAll(-1, stralioti);
- return 1;
- }
- CMD:asay(playerid, params[]) {
- if(Stralioti[playerid][pVip] <= 0) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- if(sscanf(params, "us", Id, Texto)) return SendClientMessage(playerid, -1,"Use /asay [texto]");
- format(stralioti, sizeof(stralioti),"[VIP]: %s: %s", PlayerNome(playerid), Texto);
- SendClientMessageToAll(-1, stralioti);
- return 1;
- }
- CMD:reparar(playerid) {
- if(Stralioti[playerid][pVip] <= 0) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1,"Você não está em um veículo");
- format(stralioti, sizeof(stralioti), "O VIP %s reparou o veículo", PlayerNome(playerid));
- SendClientMessage(playerid, -1, stralioti);
- RepairVehicle(GetPlayerVehicleID(playerid));
- return 1;
- }
- CMD:godcar(playerid) {
- if(Stralioti[playerid][pVip] <= 2) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1,"Você não está em um veículo");
- format(stralioti, sizeof(stralioti), "O VIP %s transformou seu veículo indestrutivel", PlayerNome(playerid));
- SendClientMessage(playerid, -1, stralioti);
- SetVehicleHealth(GetPlayerVehicleID(playerid), 99999999);
- return 1;
- }
- CMD:vips(playerid, params[]) {
- new count;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(Stralioti[i][pVip] > 0)
- {
- if(IsPlayerConnected(i))
- {
- format(stralioti, sizeof(stralioti),"Vip %s nível %d", PlayerNome(i), Level);
- SendClientMessage(playerid, -1, stralioti);
- count++;
- }
- }
- }
- if(count == 0)
- return SendClientMessage(playerid, -1, "Não tem nenhum player vip online");
- return 1;
- }
- CMD:virar(playerid, params[]) {
- if(Stralioti[playerid][pVip] <= 3) return SendClientMessage(playerid, -1,"Você não é um player VIP");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1,"Você não está em um veículo");
- SetCameraBehindPlayer(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
- return 1;
- }
- PlayerNome(playerid) {
- new nomeplayer[MAX_PLAYER_NAME];
- GetPlayerName(playerid, nomeplayer, sizeof(nomeplayer));
- return nomeplayer;
- }
Advertisement
Add Comment
Please, Sign In to add comment