Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * * * *
- * * ******* Include - BSVIP ******* * *
- * * * *
- * * BS's -- Very Important Person (BSVIP) * *
- * * * *
- * * Autor: BrunoStyle ou BS * *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * *
- * *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
- #include <a_samp>
- #define ON true
- #define OFF false
- enum BSInfo
- {
- bool:BSVip,
- BSSVIP
- };
- new VIPInfo[MAX_PLAYERS][BSInfo];
- new CarroVIP[MAX_PLAYERS];
- new string[90] ,NameVIP[25], NameRCON[25];
- /*
- Funções:
- native SetPlayerVIP(playerid, playervip, bool:status);
- native SetPlayerSVIP(playerid, playersvip, bool:status);
- native CreateVehicleVIP(modelid, color1, color2);
- native GetPlayerVIP(playerid);
- native GetPlayerSVIP(playerid);
- */
- stock SetPlayerVIP(playerid, playervip, bool:status)
- {
- GetPlayerName(playervip, NameVIP, sizeof(NameVIP));
- GetPlayerName(playerid, NameRCON, sizeof(NameRCON));
- VIPInfo[playervip][BSVIP] = status;
- format(string, sizeof(string), "Você recebeu VIP do Administrador %s", NameRCON);
- SendClientMessage(playervip, 0x33CCFFAA, string);
- CarroVIP[playervip] = OFF;
- format(string, sizeof(string), "Você entregou VIP ao Jogador %s", NameVIP);
- SendClientMessage(playerid, 0x33CCFFAA, string);
- return 1;
- }
- stock SetPlayerSVIP(playerid, playersvip, bool:status)
- {
- GetPlayerName(playersvip, NameSVIP, sizeof(NameSVIP));
- GetPlayerName(playerid, NameRCON, sizeof(NameRCON));
- VIPInfo[playervip][BSSVIP] = status;
- CarroVIP[playersvip] = OFF;
- format(string, sizeof(string), "Você recebeu SUPER-VIP do Administrador %s", NameRCON);
- SendClientMessage(playervip, 0x33CCFFAA, string);
- format(string, sizeof(string), "Você entregou SUPER-VIP ao Jogador %s", NameVIP);
- SendClientMessage(playerid, 0x33CCFFAA, string);
- return 1;
- }
- stock CreateVehicleVIP(modelid, color1, color2)
- {
- if(CarroVIP[playervip] == OFF || CarroVIP[playersvip] == OFF))
- {
- if(VIPInfo[playervip][BSVIP] == ON || VIPInfo[playervip][BSSVIP] == ON))
- {
- new Float:Pos[3];
- GetPlayerPos(playervip, Pos, Pos, Pos);
- CreateVehicle(modelid, Pos, Pos, Pos, 180, color1, color2, 9999);
- format(string, sizeof(string), "Você comprou o seu Veiculo VIP", playersvip);
- SendClientMessage(playervip, 0x33CCFFAA, string);
- SendClientMessage(playersvip, 0x33CCFFAA, string);
- }
- else
- {
- SendClientMessage(playerid, 0xA5A5A5AA, "Acesso Negado");
- }
- }
- return 1;
- }
- stock GetPlayerVIP(playerid)
- {
- if(VIPInfo[playerid][BSVIP] == ON)
- {
- GetPlayerName(playervip, NameVIP, sizeof(NameVIP));
- format(string, sizeof(string), "{FFFFFF}[SUCESSO]{33CCFF} O Jogador %s é VIP", NameVIP);
- SendClientMessage(playerid, 0x33CCFFAA, string);
- }
- if(VIPInfo[playerid][BSVIP] == OFF)
- {
- GetPlayerName(playervip, NameVIP, sizeof(NameVIP));
- format(string, sizeof(string), "{FFFF00}[ERRO]{33CCFF} O Jogador %s não é VIP", NameVIP);
- SendClientMessage(playerid, 0x33CCFFAA, string);
- }
- return 1;
- }
- stock GetPlayerSVIP(playerid)
- {
- if(VIPInfo[playerid][BSSVIP] == ON)
- {
- GetPlayerName(playervip, NameSVIP, sizeof(NameSVIP));
- format(string, sizeof(string), "{FFFFFF}[SUCESSO]{33CCFF} O Jogador %s é VIP", NameVIP);
- SendClientMessage(playerid, 0x33CCFFAA, string);
- }
- if(VIPInfo[playerid][BSSVIP] == OFF)
- {
- GetPlayerName(playervip, NameSVIP, sizeof(NameSVIP));
- format(string, sizeof(string), "{FFFF00}[ERRO]{33CCFF} O Jogador %s não é VIP", NameSVIP);
- SendClientMessage(playerid, 0x33CCFFAA, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement