Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=======================================================================================================================================================
- ==========================================================================================================================================================
- oooooooooooo .oooooo.
- `888' `8 d8P' `Y8b
- 888 888 888
- 888oooo8 888 888
- 888 " 888 888
- 888 o `88b d88'
- o888ooooood8 `Y8bood8P'
- VIP SYSTEM Filterscript
- by Oussama .aka. Compton
- NOTE: If you're going to use this filterscript, please keep the credits!
- ============================================================================================================================================================
- ==========================================================================================================================================================*/
- #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- //**Colors----------------------------------------------------------------------------------------------------------------------------------
- #define VIPCOLOR_WHITE 0xFFFFFFFF
- #define VIPCOLOR_RED 0xF22222AA
- #define VIPCOLOR_BLUE 0x1C80EBAA
- #define VIPCOLOR_GREEN 0x36C936AA
- #define VIPCOLOR_YELLOW 0xF7F70FAA
- #define VIPCOLOR_ORANGE 0xF09A1AAA
- #define VIPCOL_WHITE "{FFFFFF}"
- #define VIPCOL_RED "{F22222}"
- #define VIPCOL_BLUE "{1C80EB}"
- #define VIPCOL_GREEN "{36C936}"
- #define VIPCOL_YELLOW "{F7F70F}"
- #define VIPCOL_ORANGE "{F09A1A}"
- //**Includes---------------------------------------------------------------------------------------------------------------------------------
- #include <a_samp> // by SA_MP team
- #include <a_mysql> // by BlueG > github.com/pBlueG/SA-MP-MySQL/releases/tag/R41-2
- #include <streamer> // by incognito > github.com/samp-incognito/samp-streamer-plugin/releases/tag/v2.9.1
- #include <sscanf2> // by Y_Less > github.com/maddinat0r/sscanf/releases/tag/v2.8.2
- #include <iZCMD> // by Zeex and Yashas > github.com/YashasSamaga/I-ZCMD
- #include <foreach> // by Y_Less and Kar > github.com/karimcambridge/SAMP-foreach
- #include <YSI\y_timers> // by Y_Less and Misiur > github.com/Misiur/YSI
- #include <eovip> // by Oussama
- //**MySQL Connection------------------------------------------------------------------------------------------------------------------------
- #define MySQL_HOST "127.0.0.1"
- #define MySQL_USER "root"
- #define MySQL_PASS ""
- #define MySQL_DATABASE "eo_vipdb"
- //**Global Variables------------------------------------------------------------------------------------------------------------------------
- new
- MySQL:g_SQL,
- gPlayerBone[18][] = {
- "Spine",
- "Head",
- "Left upper arm",
- "Right upper arm",
- "Left hand",
- "Right hand",
- "Left thigh",
- "Right thigh",
- "Left foot",
- "Right foot",
- "Right calf",
- "Left calf",
- "Left forearm",
- "Right forearm",
- "Left clavicle",
- "Right clavicle",
- "Neck",
- "Jaw"
- }
- ;
- //**DIALOGs---------------------------------------------------------------------------------------------------------------------------------
- #define DIALOG_MSG 5000
- #define DIALOG_VIPBASESPAWN 5001
- #define DIALOG_VIPSKINS 5002
- #define DIALOG_VIPGPPRESETCREATE 5003
- #define DIALOG_VIPGPPRESETEDIT 5004
- #define DIALOG_TOYSINDEX 5005
- #define DIALOG_PRESETGUNLIST 5006
- #define DIALOG_GUNLISTMELEE 5007
- #define DIALOG_GUNLISTPISTOL 5008
- #define DIALOG_GUNLISTSHOTGUN 5009
- #define DIALOG_GUNLISTSUBMACHINE 5010
- #define DIALOG_GUNLISTASSAULT 5011
- #define DIALOG_GUNLISTRIFLE 5012
- #define DIALOG_VIPGPPRESETDELETE 5013
- //**Forwards--------------------------------------------------------------------------------------------------------------------------------
- forward OnVIPAccountCheck(playerid);
- //**Functions-------------------------------------------------------------------------------------------------------------------------------
- GetPlayerNameEx(playerid)
- {
- new
- pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
- return pName;
- }
- //VIP RANDOM MSG----------------------------------------------------------------------------------------------------------------------------
- new VIPTips[][] = {
- "[EO_VIP TIP]: "VIPCOL_YELLOW"Use "VIPCOL_WHITE"/vipcmds "VIPCOL_WHITE"to check few useful VIP Commands.",
- "[EO_VIP TIP]: "VIPCOL_YELLOW"Stay updated with your VIP Level information via "VIPCOL_WHITE"/viphelp .",
- "[EO_VIP TIP]: "VIPCOL_YELLOW"Check your VIP Level stats via "VIPCOL_WHITE"/vipaccount .",
- "[EO_VIP TIP]: "VIPCOL_YELLOW"Use "VIPCOL_WHITE"/vipbs "VIPCOL_WHITE"to enable/disable spawning in VIP Base."
- };
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- new MySQLOpt:sqlOption = mysql_init_options(), _query[800];
- //MySQL Connection
- g_SQL = mysql_connect(MySQL_HOST, MySQL_USER, MySQL_PASS, MySQL_DATABASE);
- if(mysql_errno(g_SQL) == 0 && g_SQL){
- printf("[MySQL]: Connection to "#MySQL_DATABASE" was successful!");
- mysql_set_option(sqlOption, AUTO_RECONNECT, true);
- mysql_log(ALL);
- _query = "CREATE TABLE IF NOT EXISTS `VIPs`(`ID` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,\
- `Username` VARCHAR(24) NOT NULL,\
- `VIPLevel` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,\
- `Timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\
- `SpawnInBase` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,\
- `WeaponPreset` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,";
- strcat(_query, "`WeaponMeleeSlot` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,\
- `WeaponPistolSlot` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,\
- `WeaponShotgunSlot` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,\
- `WeaponSubMachineSlot` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,\
- `WeaponAssaultSlot` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,\
- `WeaponRifleSlot` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0)");
- mysql_tquery(g_SQL, _query);
- print("\n--------------------------------------");
- print(" [EO] VIP system by Oussama .a.k.a Compton");
- print(" Filterscript version: 1.7");
- print(" Credits must be included");
- print("--------------------------------------\n");
- SetGameModeText("[EO] VIP System by Oussama a.k.a Compton");
- //VIP Lounge Map
- CreateVIPBase();
- //VIP vehicles
- CreateVIPVehicles();
- }
- else{
- printf("[MySQL]: Connection to "#MySQL_DATABASE" failed!");
- SendRconCommand("unloadfs EOVIP");
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- printf("[MySQL]: Connection to "#MySQL_DATABASE" was terminated!");
- SendRconCommand("unloadfs EO_VIP");
- mysql_close(g_SQL);
- return 1;
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- new _query[77];
- SetGameModeText("[EO VIP]: {FF00CC}VIP System by "VIPCOL_YELLOW"Oussama");
- mysql_format(g_SQL, _query, sizeof(_query), "SELECT * FROM `VIPs` WHERE `Username` = '%e' LIMIT 1", GetPlayerNameEx(playerid));
- mysql_tquery(g_SQL, _query, "OnVIPAccountCheck", "d", playerid);
- return 1;
- }
- public OnVIPAccountCheck(playerid){
- if(cache_num_rows()){
- new _vip_level;
- cache_get_value_name_int(0, "VIPLevel", _vip_level);
- cache_get_value_name_int(0, "SpawnInBase", VIPInfo[playerid][e_VIPBaseSpawn]);
- cache_get_value_name_int(0, "WeaponPreset", VIPInfo[playerid][e_VIPGunPackPreset]);
- cache_get_value_name_int(0, "WeaponMeleeSlot", VIPInfo[playerid][e_VIPGPMelee]);
- cache_get_value_name_int(0, "WeaponPistolSlot", VIPInfo[playerid][e_VIPGPPistol]);
- cache_get_value_name_int(0, "WeaponShotgunSlot", VIPInfo[playerid][e_VIPGPShotgun]);
- cache_get_value_name_int(0, "WeaponSubMachineSlot", VIPInfo[playerid][e_VIPGPSubMachine]);
- cache_get_value_name_int(0, "WeaponAssaultSlot", VIPInfo[playerid][e_VIPGPAssault]);
- cache_get_value_name_int(0, "WeaponRifleSlot", VIPInfo[playerid][e_VIPGPRifle]);
- SetPlayerVIPLevel(playerid, _vip_level);
- VIPInfo[playerid][e_VIPGunPackCoolDown] = 0;
- VIPInfo[playerid][e_VIPBaseTeleportCoolDown] = 0;
- VIPInfo[playerid][e_VIPFirstSpawn] = true;
- }
- else{
- new _query[69];
- mysql_format(g_SQL, _query, sizeof(_query), "INSERT INTO `VIPs` (`Username`) VALUES('%e')", GetPlayerNameEx(playerid));
- mysql_tquery(g_SQL, _query);
- }
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new _query[300];
- DestroyDynamic3DTextLabel(VIPInfo[playerid][e_VIPTagID]);
- mysql_format(g_SQL, _query, sizeof(_query), "UPDATE `VIPs` SET \
- `VIPLevel` = %d, \
- `SpawnInBase` = %d, \
- `WeaponPreset` = %d, \
- `WeaponMeleeSlot` = %d, \
- `WeaponPistolSlot` = %d, \
- `WeaponShotgunSlot` = %d, \
- `WeaponSubMachineSlot` = %d, \
- `WeaponAssaultSlot` = %d, \
- `WeaponRifleSlot` = %d WHERE `Username` = '%e'",
- GetPlayerVIPLevel(playerid),
- VIPInfo[playerid][e_VIPBaseSpawn],
- VIPInfo[playerid][e_VIPGunPackPreset],
- VIPInfo[playerid][e_VIPGPMelee],
- VIPInfo[playerid][e_VIPGPPistol],
- VIPInfo[playerid][e_VIPGPShotgun],
- VIPInfo[playerid][e_VIPGPSubMachine],
- VIPInfo[playerid][e_VIPGPAssault],
- VIPInfo[playerid][e_VIPGPRifle],
- GetPlayerNameEx(playerid));
- mysql_tquery(g_SQL, _query);
- //Stats reset
- SetPlayerVIPLevel(playerid, 0);
- VIPInfo[playerid][e_VIPBaseSpawn] = false;
- VIPInfo[playerid][e_VIPGunPackPreset] = false;
- VIPInfo[playerid][e_VIPGPMelee] = -1;
- VIPInfo[playerid][e_VIPGPPistol] = -1;
- VIPInfo[playerid][e_VIPGPShotgun] = -1;
- VIPInfo[playerid][e_VIPGPSubMachine] = -1;
- VIPInfo[playerid][e_VIPGPAssault] = -1;
- VIPInfo[playerid][e_VIPGPRifle] = -1;
- VIPInfo[playerid][e_VIPFirstSpawn] = false;
- VIPInfo[playerid][e_IsVIPInLounge] = false;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- new str[128];
- if(IsPlayerVIP(playerid)){
- if(VIPInfo[playerid][e_VIPFirstSpawn]){
- format(str, sizeof(str), "Welcome "VIPCOL_WHITE"%s "VIPCOL_YELLOW", your VIP level is "VIPCOL_WHITE"%i "VIPCOL_YELLOW"|| account type: "VIPCOL_WHITE"%s", GetPlayerNameEx(playerid), GetPlayerVIPLevel(playerid), GetPlayerVIPName(playerid));
- SendClientMessage(playerid, VIPCOLOR_YELLOW, str);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"Use "VIPCOL_WHITE"/vipcmds "VIPCOL_YELLOW"to display a useful collection of VIP commands, for information help use "VIPCOL_WHITE"/viphelp");
- VIPInfo[playerid][e_VIPFirstSpawn] = false;
- }
- if(GetPlayerVIPLevel(playerid) == EOVIP_VIPLEVEL_3){
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"Your Armour has been set to "VIPCOL_WHITE"40%\%");
- SetPlayerArmour(playerid, 40);
- }
- else if(GetPlayerVIPLevel(playerid) == EOVIP_VIPLEVEL_4){
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"Your Armour has been set to "VIPCOL_WHITE"90%\%");
- SetPlayerArmour(playerid, 90);
- }
- }
- if(VIPInfo[playerid][e_VIPBaseSpawn]){
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have spawned at VIP Base, you can change this option via "VIPCOL_WHITE"/vipbs");
- TogglePlayerControllable(playerid, false);
- SetPlayerPos(playerid, 3049.6392,-668.2963,2.8086);
- defer VIPBaseTeleportTimer(playerid);
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new VehID = GetPlayerVehicleID(playerid);
- if(newstate == PLAYER_STATE_DRIVER && IsVIPVehicle(VehID)) {
- if(IsPlayerVIP(playerid))
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"Welcome to VIP Vehicle");
- else{
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, VIPCOLOR_RED, "[EO_VIP]: You cannot drive a VIP vehicle!");
- }
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(PRESSED(KEY_NO)){
- new Float:X, Float:Y, Float:Z, str[96];
- GetPlayerPos(playerid, X, Y, Z);
- if(IsPlayerInRangeOfPoint(playerid, 4, 3002.3396, -683.2094, 1.9951)){
- if(!IsPlayerVIP(playerid)) return 0;
- if(!IsVIPGateOpened()){
- if(IsDynamicObjectMoving(VIPGate[e_Gate1]))
- return SendClientMessage(playerid, VIPCOLOR_RED, "[EO_VIP]: Wait for the gate to fully close!");
- ControllVIPGate(VIPGATE_OPEN);
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[EO_VIP]: VIP Base gate is opening!");
- }
- else{
- if(IsDynamicObjectMoving(VIPGate[e_Gate1]))
- return SendClientMessage(playerid, VIPCOLOR_RED, "[EO_VIP]: Wait for the gate to fully open!");
- ControllVIPGate(VIPGATE_CLOSE);
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[EO_VIP]: VIP Base gate is closing!");
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 3024.9241, -692.5798, 3.3770)){
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot enter this lounge!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You cannot enter the lounge while being in a vehicle!");
- format(str, sizeof(str), "[VIP Lounge]: "VIPCOL_YELLOW"VIP "VIPCOL_WHITE"%s"VIPCOL_YELLOW" has entered The VIP Lounge", GetPlayerNameEx(playerid));
- foreach(new i : Player){
- if(IsPlayerVIP(i) && VIPInfo[i][e_IsVIPInLounge])
- SendClientMessage(i, VIPCOLOR_ORANGE, str);
- }
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 942.171997, -16.542755, 1000.929687);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"press "VIPCOL_WHITE"N "VIPCOL_YELLOW"to get outside");
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"Welcome to the VIP Lounge");
- VIPInfo[playerid][e_IsVIPInLounge] = true;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 942.1549,-16.8236,1000.9297)){
- format(str, sizeof(str), "[VIP Lounge]: "VIPCOL_ORANGE"VIP "VIPCOL_WHITE"%s "VIPCOL_ORANGE"has left The VIP Lounge", GetPlayerNameEx(playerid));
- VIPInfo[playerid][e_IsVIPInLounge] = false;
- foreach(new i : Player){
- if(IsPlayerVIP(i) && VIPInfo[i][e_IsVIPInLounge])
- SendClientMessage(i, VIPCOLOR_ORANGE, str);
- }
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 3024.9241, -692.5798, 3.3770);
- TogglePlayerControllable(playerid, false);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: You have been temporarily frozen, please wait for the environment to lead!");
- defer VIPBaseTeleportTimer(playerid);
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid){
- case DIALOG_VIPSKINS:{
- if(!response) return 0;
- switch(listitem){
- case 0: SetPlayerSkin(playerid, 2), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Maccer");
- case 1: SetPlayerSkin(playerid, 3), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Andre");
- case 2: SetPlayerSkin(playerid, 12), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Rich Woman");
- case 3: SetPlayerSkin(playerid, 0), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"CJ");
- case 4: SetPlayerSkin(playerid, 45), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Stunter");
- case 5: SetPlayerSkin(playerid, 86), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Ryder");
- case 6: SetPlayerSkin(playerid, 120), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Triad Boss");
- case 7: SetPlayerSkin(playerid, 269), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Big Smoke");
- case 8: SetPlayerSkin(playerid, 167), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Cluckin' bell worker");
- case 9: SetPlayerSkin(playerid, 192), SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have changed your skin to "VIPCOL_WHITE"Michelle");
- }
- }
- case DIALOG_VIPBASESPAWN:{
- if(!response) return 0;
- if(!VIPInfo[playerid][e_VIPBaseSpawn]){
- VIPInfo[playerid][e_VIPBaseSpawn] = true;
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"Your spawn position was set to the VIP Base!");
- }
- else{
- VIPInfo[playerid][e_VIPBaseSpawn] = false;
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You will not spawn on the VIP Base the next time!");
- }
- }
- case DIALOG_VIPGPPRESETCREATE:{
- if(!response) return 0;
- ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- }
- case DIALOG_PRESETGUNLIST:{
- if(!response) return SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have canceled Gunpack preset creation!");
- switch(listitem){
- case 0: ShowPlayerDialog(playerid, DIALOG_GUNLISTMELEE, DIALOG_STYLE_LIST, "Weapon List - Melee", "Knife\nBaseball Bat\nNightStick\nDildo\nGolf Club\nShovel\nKatana", "Select", "Cancel");
- case 1: ShowPlayerDialog(playerid, DIALOG_GUNLISTPISTOL, DIALOG_STYLE_LIST, "Weapon List - Pistol", "9mm Pistol\nSilenced Pistol\nDeagle", "Select", "Cancel");
- case 2: ShowPlayerDialog(playerid, DIALOG_GUNLISTSHOTGUN, DIALOG_STYLE_LIST, "Weapon List - Shotgun", "Shotgun\nCombat Shotgun\nSwan-off Shotgun", "Select", "Cancel");
- case 3: ShowPlayerDialog(playerid, DIALOG_GUNLISTSUBMACHINE, DIALOG_STYLE_LIST, "Weapon List - SubMachine", "MP5\nTec-9\nMicro UZI", "Select", "Cancel");
- case 4: ShowPlayerDialog(playerid, DIALOG_GUNLISTASSAULT, DIALOG_STYLE_LIST, "Weapon List - Assault", "M4\nAK-47", "Select", "Cancel");
- case 5: ShowPlayerDialog(playerid, DIALOG_GUNLISTRIFLE, DIALOG_STYLE_LIST, "Weapon List - Rifle", "Country Rifle\nSniper Rifle", "Select", "Cancel");
- case 6:{
- VIPInfo[playerid][e_VIPGunPackPreset] = true;
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have saved your Gunpack preset, next time you use /vipgunpack you will spawn your Gunpack preset!");
- }
- }
- }
- case DIALOG_GUNLISTMELEE:{
- if(!response) return ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- switch(listitem){
- case 0: VIPInfo[playerid][e_VIPGPMelee] = 4, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Knife\"");
- case 1: VIPInfo[playerid][e_VIPGPMelee] = 5, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Baseball Bat\"");
- case 2: VIPInfo[playerid][e_VIPGPMelee] = 3, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"NightStick\"");
- case 3: VIPInfo[playerid][e_VIPGPMelee] = 10, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Dildo\"");
- case 4: VIPInfo[playerid][e_VIPGPMelee] = 2, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Golf Club\"");
- case 5: VIPInfo[playerid][e_VIPGPMelee] = 6, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Shovel\"");
- case 6: VIPInfo[playerid][e_VIPGPMelee] = 8, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Katana\"");
- }
- ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- }
- case DIALOG_GUNLISTPISTOL:{
- if(!response) return ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- switch(listitem){
- case 0: VIPInfo[playerid][e_VIPGPPistol] = 22, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"9mm Pistol\"");
- case 1: VIPInfo[playerid][e_VIPGPPistol] = 23, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Silenced Pistol\"");
- case 2: VIPInfo[playerid][e_VIPGPPistol] = 24, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Deagle\"");
- }
- ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- }
- case DIALOG_GUNLISTSHOTGUN:{
- if(!response) return ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- switch(listitem){
- case 0: VIPInfo[playerid][e_VIPGPShotgun] = 25, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Shotgun\"");
- case 1: VIPInfo[playerid][e_VIPGPShotgun] = 27, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Combat Shotgun\"");
- case 2: VIPInfo[playerid][e_VIPGPShotgun] = 26, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Swan-off Shotgun\"");
- }
- ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- }
- case DIALOG_GUNLISTSUBMACHINE:{
- if(!response) return ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- switch(listitem){
- case 0: VIPInfo[playerid][e_VIPGPSubMachine] = 29, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"MP5\"");
- case 1: VIPInfo[playerid][e_VIPGPSubMachine] = 32, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Tec-9\"");
- case 2: VIPInfo[playerid][e_VIPGPSubMachine] = 28, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Micro UZI\"");
- }
- ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- }
- case DIALOG_GUNLISTASSAULT:{
- if(!response) return ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- switch(listitem){
- case 0: VIPInfo[playerid][e_VIPGPAssault] = 31, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"M4\"");
- case 1: VIPInfo[playerid][e_VIPGPAssault] = 30, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"AK-47\"");
- }
- ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- }
- case DIALOG_GUNLISTRIFLE:{
- if(!response) return ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- switch(listitem){
- case 0: VIPInfo[playerid][e_VIPGPRifle] = 33, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Country Rifle\"");
- case 1: VIPInfo[playerid][e_VIPGPRifle] = 34, SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have selected \"Sniper Rifle\"");
- }
- ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- }
- case DIALOG_VIPGPPRESETEDIT:{
- if(!response) return 0;
- switch(listitem){
- case 0: ShowPlayerDialog(playerid, DIALOG_PRESETGUNLIST, DIALOG_STYLE_LIST, "VIP Gunpack Preset - Weapon List", "Melee\nPistol\nShotgun\nSubMachine\nAssault\nRifle\nSave Gunpack Preset", "Select", "Cancel");
- case 1: ShowPlayerDialog(playerid, DIALOG_VIPGPPRESETDELETE, DIALOG_STYLE_MSGBOX, "VIP Gunpack Preset", "Are you sure you want to delete your Gunpack preset?\n"VIPCOL_YELLOW"you can create another one anytime via "VIPCOL_WHITE"/vipgppreset", "Yes", "No");
- }
- }
- case DIALOG_VIPGPPRESETDELETE:{
- if(!response) return 0;
- VIPInfo[playerid][e_VIPGunPackPreset] = false;
- VIPInfo[playerid][e_VIPGPMelee] = -1;
- VIPInfo[playerid][e_VIPGPPistol] = -1;
- VIPInfo[playerid][e_VIPGPShotgun] = -1;
- VIPInfo[playerid][e_VIPGPSubMachine] = -1;
- VIPInfo[playerid][e_VIPGPAssault] = -1;
- VIPInfo[playerid][e_VIPGPRifle] = -1;
- SendClientMessage(playerid, VIPCOLOR_BLUE, "[EO_VIP]: You have deleted your Gunpack preset!");
- }
- }
- return 0;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- new _header[54];
- if(IsPlayerVIP(clickedplayerid)){
- new _content[76];
- format(_header, sizeof(_header), ""VIPCOL_BLUE"%s"VIPCOL_WHITE"'s VIP Info", GetPlayerNameEx(clickedplayerid));
- format(_content, sizeof(_content), ""VIPCOL_WHITE"VIP Level: "VIPCOL_YELLOW"%d\n"VIPCOL_WHITE"Account Type: "VIPCOL_YELLOW"%s\n", GetPlayerVIPLevel(clickedplayerid), GetPlayerVIPName(clickedplayerid));
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, _header, _content, "Close", "");
- }
- else{
- format(_header, sizeof(_header), ""VIPCOL_BLUE"%s"VIPCOL_WHITE"'s VIP Info", GetPlayerNameEx(clickedplayerid));
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, _header, ""VIPCOL_RED"This player is not a VIP", "Close", "");
- }
- return 1;
- }
- //**Commands---------------------------------------------------------------------------------------------------------------------------------
- //VIP Admin Commands
- CMD:vipcount(playerid){
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not authorized to use this command!");
- new str[60];
- format(str, sizeof(str), "");
- mysql_tquery(g_SQL, "SELECT `ID` FROM `VIPs`");
- format(str, sizeof(str), ""VIPCOL_WHITE"There is a total of "VIPCOL_YELLOW"%d "VIPCOL_WHITE"VIPs", cache_num_rows());
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "VIP information", str, "Close", "");
- return 1;
- }
- CMD:setvip(playerid, params[]) {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not authorized to use this command!");
- new _string[128], _query[145], level, targetid;
- if(sscanf(params, "ud", targetid, level)){
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[USAGE]: /setvip [playerid] [level]");
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[FUNCTION]: Set someone's VIP status");
- return 1;
- }
- if(level < 0 || level > 4) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You have entered an invalid VIP level, Valid levels: [1-4]!");
- if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: This player is not connected!");
- if(level == GetPlayerVIPLevel(targetid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: This player already has this VIP level!");
- if(GetPlayerVIPLevel(targetid) > level){
- format(_string, sizeof(_string), "[INFO]: You have been demoted from VIP level "VIPCOL_WHITE"%d "VIPCOL_RED"to VIP level "VIPCOL_WHITE"%d!", GetPlayerVIPLevel(targetid), level);
- SendClientMessage(targetid, VIPCOLOR_RED, _string);
- GameTextForPlayer(playerid, "~r~Demoted", 2000, 0);
- format(_string, sizeof(_string), "[INFO]: You have demoted %s from VIP level "VIPCOL_WHITE"%d "VIPCOL_ORANGE"to VIP level "VIPCOL_WHITE"%d!", GetPlayerNameEx(targetid), GetPlayerVIPLevel(targetid), level);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, _string);
- }
- else{
- format(_string, sizeof(_string), "[INFO]: You have been promoted from VIP level "VIPCOL_WHITE"%d "VIPCOL_YELLOW"to VIP level "VIPCOL_WHITE"%d!", GetPlayerVIPLevel(targetid), level);
- SendClientMessage(targetid, VIPCOLOR_YELLOW, _string);
- GameTextForPlayer(playerid, "~g~Promoted~n~~y~Congratulations", 2000, 0);
- format(_string, sizeof(_string), "[INFO]: You have promoted %s from VIP level "VIPCOL_WHITE"%d "VIPCOL_ORANGE"to VIP level "VIPCOL_WHITE"%d!", GetPlayerNameEx(targetid), GetPlayerVIPLevel(targetid), level);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, _string);
- }
- format(_string, sizeof(_string), "[INFO]: Administrator %s has given VIP level %d to %s", GetPlayerNameEx(playerid), level, GetPlayerNameEx(targetid));
- SendClientMessageToAll(VIPCOLOR_ORANGE, _string);
- SetPlayerVIPLevel(targetid, level);
- mysql_format(g_SQL, _query, sizeof(_query), "UPDATE `VIPs` SET `VIPLevel` = %d, `Timestamp` = CURRENT_TIMESTAMP WHERE `Username` = '%e'", GetPlayerVIPLevel(playerid), GetPlayerNameEx(playerid));
- mysql_tquery(g_SQL, _query);
- return 1;
- }
- //vip level 0 Commands
- CMD:isvip(playerid, params[]){
- new tid, _header[54];
- if(sscanf(params, "u", tid)){
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[USAGE]: /isvip [playerid]");
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[FUNCTION]: Check if player is a VIP");
- return 1;
- }
- if(!IsPlayerConnected(tid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: This player is not connected");
- if(IsPlayerVIP(tid)){
- new _content[76];
- format(_header, sizeof(_header), ""VIPCOL_BLUE"%s"VIPCOL_WHITE"'s VIP Info", GetPlayerNameEx(tid));
- format(_content, sizeof(_content), ""VIPCOL_WHITE"VIP Level: "VIPCOL_YELLOW"%d\n"VIPCOL_WHITE"Account Type: "VIPCOL_YELLOW"%s\n", GetPlayerVIPLevel(tid), GetPlayerVIPName(tid));
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, _header, _content, "Close", "");
- }
- else{
- format(_header, sizeof(_header), ""VIPCOL_BLUE"%s"VIPCOL_WHITE"'s VIP Info", GetPlayerNameEx(tid));
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, _header, ""VIPCOL_RED"This player is not a VIP", "Close", "");
- }
- return 1;
- }
- CMD:vips(playerid) {
- new _header[50], _content[3000], _count;
- foreach(new i : Player){
- if(IsPlayerVIP(i)){
- format(_content, sizeof(_content), "%s[%s : level %d] %s\n", _content, GetPlayerVIPName(i), GetPlayerVIPLevel(i), GetPlayerNameEx(i));
- _count++;
- }
- }
- if(_count){
- format(_header, sizeof(_header), ""VIPCOL_WHITE"VIPs Online ["VIPCOL_GREEN"%d"VIPCOL_WHITE"]", _count);
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, _header, _content, "Close", "");
- }
- else{
- format(_header, sizeof(_header), ""VIPCOL_WHITE"VIPs Online ["VIPCOL_GREEN"%d"VIPCOL_WHITE"]", _count);
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, ""VIPCOL_WHITE"VIPs Online ["VIPCOL_RED"0"VIPCOL_WHITE"]", ""VIPCOL_RED"There are no VIPs online!", "Close", "");
- }
- return 1;
- }
- //VIP Level 1 Commands
- CMD:vipcmds(playerid) {
- new _content[1500], _header[32];
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_0:{
- strcat(_content, ""VIPCOL_ORANGE"/isvip - "VIPCOL_WHITE" View if player is a VIP\n");
- strcat(_content, ""VIPCOL_ORANGE"/vips - "VIPCOL_WHITE" View all online VIPs");
- strcpy(_header, "VIP Level 0 [None] Commands", sizeof(_header));
- }
- case EOVIP_VIPLEVEL_1:{
- strcat(_content, ""VIPCOL_ORANGE"/isvip - "VIPCOL_WHITE" View if player is a VIP\n");
- strcat(_content, ""VIPCOL_ORANGE"/vips - "VIPCOL_WHITE" View all online VIPs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vchat - "VIPCOL_WHITE" Chat with other VIPs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipcmds - "VIPCOL_WHITE" View VIP commands\n");
- strcat(_content, ""VIPCOL_ORANGE"/viphelp - "VIPCOL_WHITE" View VIP help panel\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipaccount - "VIPCOL_WHITE" View you're VIP account information\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptag - "VIPCOL_WHITE" Toggle VIP tag on you\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipgunpack - "VIPCOL_WHITE" Spawn VIP gun pack\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptoys - "VIPCOL_WHITE" Manage VIP toys\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptime - "VIPCOL_WHITE" Change the time\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipweather - "VIPCOL_WHITE" Change the weather\n");
- strcat(_content, ""VIPCOL_ORANGE"/weatherids - "VIPCOL_WHITE" View weather IDs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbs - "VIPCOL_WHITE" Manage VIP bane spawn\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipvehflip - "VIPCOL_WHITE" Flip up your vehicle");
- strcpy(_header, "VIP Level 1 [Silver] Commands", sizeof(_header));
- }
- case EOVIP_VIPLEVEL_2:{
- strcat(_content, ""VIPCOL_ORANGE"/isvip - "VIPCOL_WHITE" View if player is a VIP\n");
- strcat(_content, ""VIPCOL_ORANGE"/vips - "VIPCOL_WHITE" View all online VIPs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vchat - "VIPCOL_WHITE" Chat with other VIPs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipcmds - "VIPCOL_WHITE" View VIP commands\n");
- strcat(_content, ""VIPCOL_ORANGE"/viphelp - "VIPCOL_WHITE" View VIP help panel\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipaccount - "VIPCOL_WHITE" View you're VIP account information\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptag - "VIPCOL_WHITE" Toggle VIP tag on you\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipgunpack - "VIPCOL_WHITE" Spawn VIP gun pack\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptoys - "VIPCOL_WHITE" Manage VIP toys\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptime - "VIPCOL_WHITE" Change the time\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipweather - "VIPCOL_WHITE" Change the weather\n");
- strcat(_content, ""VIPCOL_ORANGE"/weatherids - "VIPCOL_WHITE" View weather IDs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbs - "VIPCOL_WHITE" Manage VIP bane spawn\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipvehflip - "VIPCOL_WHITE" Flip up your vehicle\n");
- strcat(_content, ""VIPCOL_ORANGE"/changevehcolor - "VIPCOL_WHITE" Change your vehicle's color\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipnos - "VIPCOL_WHITE" Add nitrous to your vehicle\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipenginefix - "VIPCOL_WHITE" Fix your vehicle's engine\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbodyfix - "VIPCOL_WHITE" Fix your vehicle's body\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbasetp - "VIPCOL_WHITE" Teleport to the VIP base");
- strcpy(_header, "VIP Level 2 [Gold] Commands", sizeof(_header));
- }
- case EOVIP_VIPLEVEL_3:{
- strcat(_content, ""VIPCOL_ORANGE"/isvip - "VIPCOL_WHITE" View if player is a VIP\n");
- strcat(_content, ""VIPCOL_ORANGE"/vips - "VIPCOL_WHITE" View all online VIPs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vchat - "VIPCOL_WHITE" Chat with other VIPs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipcmds - "VIPCOL_WHITE" View VIP commands\n");
- strcat(_content, ""VIPCOL_ORANGE"/viphelp - "VIPCOL_WHITE" View VIP help panel\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipaccount - "VIPCOL_WHITE" View you're VIP account information\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptag - "VIPCOL_WHITE" Toggle VIP tag on you\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipgunpack - "VIPCOL_WHITE" Spawn VIP gun pack\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptoys - "VIPCOL_WHITE" Manage VIP toys\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptime - "VIPCOL_WHITE" Change the time\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipweather - "VIPCOL_WHITE" Change the weather\n");
- strcat(_content, ""VIPCOL_ORANGE"/weatherids - "VIPCOL_WHITE" View weather IDs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbs - "VIPCOL_WHITE" Manage VIP bane spawn\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipvehflip - "VIPCOL_WHITE" Flip up your vehicle\n");
- strcat(_content, ""VIPCOL_ORANGE"/changevehcolor - "VIPCOL_WHITE" Change your vehicle's color\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipnos - "VIPCOL_WHITE" Add nitrous to your vehicle\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipenginefix - "VIPCOL_WHITE" Fix your vehicle's engine\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbodyfix - "VIPCOL_WHITE" Fix your vehicle's body\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbasetp - "VIPCOL_WHITE" Teleport to the VIP base\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipgppreset - "VIPCOL_WHITE" Manage your gun pack preset\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipskin - "VIPCOL_WHITE" Change your skin");
- strcpy(_header, "VIP Level 3 [Diamond] Commands", sizeof(_header));
- }
- case EOVIP_VIPLEVEL_4:{
- strcat(_content, ""VIPCOL_ORANGE"/isvip - "VIPCOL_WHITE" View if player is a VIP\n");
- strcat(_content, ""VIPCOL_ORANGE"/vips - "VIPCOL_WHITE" View all online VIPs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vchat - "VIPCOL_WHITE" Chat with other VIPs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipcmds - "VIPCOL_WHITE" View VIP commands\n");
- strcat(_content, ""VIPCOL_ORANGE"/viphelp - "VIPCOL_WHITE" View VIP help panel\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipaccount - "VIPCOL_WHITE" View you're VIP account information\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptag - "VIPCOL_WHITE" Toggle VIP tag on you\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipgunpack - "VIPCOL_WHITE" Spawn VIP gun pack\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptoys - "VIPCOL_WHITE" Manage VIP toys\n");
- strcat(_content, ""VIPCOL_ORANGE"/viptime - "VIPCOL_WHITE" Change the time\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipweather - "VIPCOL_WHITE" Change the weather\n");
- strcat(_content, ""VIPCOL_ORANGE"/weatherids - "VIPCOL_WHITE" View weather IDs\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbs - "VIPCOL_WHITE" Manage VIP bane spawn\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipvehflip - "VIPCOL_WHITE" Flip up your vehicle\n");
- strcat(_content, ""VIPCOL_ORANGE"/changevehcolor - "VIPCOL_WHITE" Change your vehicle's color\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipnos - "VIPCOL_WHITE" Add nitrous to your vehicle\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipenginefix - "VIPCOL_WHITE" Fix your vehicle's engine\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbodyfix - "VIPCOL_WHITE" Fix your vehicle's body\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipbasetp - "VIPCOL_WHITE" Teleport to the VIP base\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipgppreset - "VIPCOL_WHITE" Manage your gun pack preset\n");
- strcat(_content, ""VIPCOL_ORANGE"/vipskin - "VIPCOL_WHITE" Change your skin");
- strcpy(_header, "VIP Level 4 [Platinum] Commands", sizeof(_header));
- }
- }
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_LIST, _header, _content, "Close", "");
- return 1;
- }
- CMD:vchat(playerid, params[]) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(isnull(params)){
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[USAGE]: /vchat [message]");
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[FUNCTION]: Chat with other VIPs");
- return 1;
- }
- if(strlen(params) > 79) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: Message given is too long!");
- new message[128];
- format(message, sizeof(message), "[VIP CHAT][Level %d]%s: %s", GetPlayerVIPLevel(playerid), GetPlayerNameEx(playerid), params);
- SendClientMessageToAllVIPs(message, VIPCOLOR_BLUE);
- return 1;
- }
- CMD:vipaccount(playerid, params[]) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- new _content[212];
- format(_content, sizeof(_content), ""VIPCOL_WHITE"Username: "VIPCOL_YELLOW"%s\n \
- "VIPCOL_WHITE"VIP Level: "VIPCOL_YELLOW"%d\n \
- "VIPCOL_WHITE"Account Type: "VIPCOL_YELLOW"%s\n \
- "VIPCOL_WHITE"VIP Acquired Date: "VIPCOL_YELLOW"%s\n \
- "VIPCOL_WHITE"Days Left: "VIPCOL_YELLOW"%d\n \
- "VIPCOL_WHITE"Spawn in VIP Base: "VIPCOL_YELLOW"%s",
- GetPlayerNameEx(playerid),
- GetPlayerVIPLevel(playerid),
- GetPlayerVIPName(playerid));
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "VIP information", _content, "Close", "");
- return 1;
- }
- CMD:viphelp(playerid, params[]) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_1:{
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "[Silver] VIP Help", "Features:\n\n* You can change up to 2 different weather types.", "Close","");
- }
- case EOVIP_VIPLEVEL_2:{
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "[GOLD] VIP Help", "Features:\n\n* /vipgunpack Gives you 2 weapons.\n\n* You can change up to 3 different weather types.","Close","");
- }
- case EOVIP_VIPLEVEL_3:{
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "[DIAMOND] VIP Help", "Features:\n\n* Spawn with 40% of Armour.\n\n* /vipgunpack Gives you 3 weapons.\n\n* You can change up to 4 different weather types.\n\n* You choose between 5 skin via /vipskin.","Close","");
- }
- case EOVIP_VIPLEVEL_4:{
- ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "[PLATINUM] VIP Help", "Features:\n\n* Spawn with 90% of Armour.\n\n* /vipgunpack Gives you 4 weapons.\n\n* You can change up to 6 different weather types.\n\n* You choose between 10 skin via /vipskin.","Close","");
- }
- }
- return 1;
- }
- CMD:viptag(playerid) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(!IsPlayerVIPTagActive(playerid))
- TogglePlayerVIPTag(playerid, true);
- else
- TogglePlayerVIPTag(playerid, false);
- return 1;
- }
- CMD:vipgunpack(playerid) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(gettime() - VIPInfo[playerid][e_VIPGunPackCoolDown] < 900) SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You have just used that command, please wait for a 15 mins");
- if(!VIPInfo[playerid][e_VIPGunPackPreset]){
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_2:{
- GivePlayerWeapon(playerid, 22, 50);
- GivePlayerWeapon(playerid, 25, 30);
- }
- case EOVIP_VIPLEVEL_3:{
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 10);
- GivePlayerWeapon(playerid, 27, 50);
- }
- case EOVIP_VIPLEVEL_4:{
- GivePlayerWeapon(playerid, 9, 1);
- GivePlayerWeapon(playerid, 24, 25);
- GivePlayerWeapon(playerid, 26, 30);
- GivePlayerWeapon(playerid, 31, 100);
- }
- }
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"VIP Weapon pack given");
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have loaded the default preset of guns, you can create your customized one via "VIPCOL_WHITE"/vipgppreset");
- }
- else{
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have loaded customized preset of guns, you can manage it anytime via "VIPCOL_WHITE"/vipgppreset");
- if(VIPInfo[playerid][e_VIPGPMelee] != -1)
- GivePlayerWeapon(playerid, VIPInfo[playerid][e_VIPGPMelee], 1);
- if(VIPInfo[playerid][e_VIPGPPistol] != -1)
- GivePlayerWeapon(playerid, VIPInfo[playerid][e_VIPGPPistol], 25);
- if(VIPInfo[playerid][e_VIPGPShotgun] != -1)
- GivePlayerWeapon(playerid, VIPInfo[playerid][e_VIPGPShotgun], 30);
- if(VIPInfo[playerid][e_VIPGPSubMachine] != -1)
- GivePlayerWeapon(playerid, VIPInfo[playerid][e_VIPGPSubMachine], 40);
- if(VIPInfo[playerid][e_VIPGPAssault] != -1)
- GivePlayerWeapon(playerid, VIPInfo[playerid][e_VIPGPAssault], 100);
- if(VIPInfo[playerid][e_VIPGPRifle] != -1)
- GivePlayerWeapon(playerid, VIPInfo[playerid][e_VIPGPRifle], 15);
- }
- VIPInfo[playerid][e_VIPGunPackCoolDown] = gettime();
- return 1;
- }
- CMD:viptoys(playerid){
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- new _content[300];
- for(new i; i<MAX_PLAYER_ATTACHED_OBJECTS; i++){
- format(_content, sizeof(_content), "%s%s\t%s" ,_content, gPlayerBone[i], IsPlayerAttachedObjectSlotUsed(playerid, i) ? (""VIPCOL_RED"[USED]") : (""VIPCOL_GREEN"[EMPTY]"));
- }
- //ShowPlayerDialog(playerid, DIALOG_TOYSINDEX, DIALOG_STYLE_LIST, "VIP Attachments", _content, "Select", "Cancel");
- SendClientMessage(playerid, VIPCOLOR_WHITE, "* Coming soon!");
- return 1;
- }
- CMD:viptime(playerid, params[]){
- new _hour, _minute, str[70];
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(sscanf(params, "ii", _hour, _minute)){
- SendClientMessage(playerid, VIPCOLOR_GREEN ,"[USAGE]: /viptime [Hour] [Minute]");
- SendClientMessage(playerid, VIPCOLOR_GREEN ,"[FUNCTION]: Change your time");
- return 1;
- }
- if(_hour > 23 || _hour < 0 || _minute > 59 || _minute < 0) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You have entered an invalid hour/minute value!");
- format(str, sizeof(str), "[EO_VIP]: You have set your time to "VIPCOL_WHITE"%02d"VIPCOL_ORANGE":"VIPCOL_WHITE"%02d", _hour, _minute);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, str);
- SetPlayerTime(playerid, _hour, _minute);
- return 1;
- }
- CMD:vipbs(playerid){
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(!VIPInfo[playerid][e_VIPBaseSpawn])
- ShowPlayerDialog(playerid, DIALOG_VIPBASESPAWN, DIALOG_STYLE_MSGBOX, "VIP Base Spawn Option", "Do you want to always spawn in VIP Base?\n\nYou can change this this anytime with "VIPCOL_WHITE"/vipbs", "Yes", "No");
- else
- ShowPlayerDialog(playerid, DIALOG_VIPBASESPAWN, DIALOG_STYLE_MSGBOX, "VIP Base Spawn Option", "Do you want to disable Spawning in VIP base option?\n\nYou can change this this anytime with "VIPCOL_WHITE"/vipbs", "Yes", "No");
- return 1;
- }
- CMD:weatherids(playerid) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_1: ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "Weather IDs", ""VIPCOL_YELLOW"1- "VIPCOL_WHITE"Sunny\n\n"VIPCOL_YELLOW"2- "VIPCOL_WHITE"Extra Sunny Smog", "Close", "");
- case EOVIP_VIPLEVEL_2: ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "Weather IDs", ""VIPCOL_YELLOW"1- "VIPCOL_WHITE"Sunny\n\n"VIPCOL_YELLOW"2- "VIPCOL_WHITE"Extra Sunny Smog\n\n"VIPCOL_YELLOW"3- "VIPCOL_WHITE"Sunny Smog", "Close", "");
- case EOVIP_VIPLEVEL_3: ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "Weather IDs", ""VIPCOL_YELLOW"1- "VIPCOL_WHITE"Sunny\n\n"VIPCOL_YELLOW"2- "VIPCOL_WHITE"Extra Sunny Smog\n\n"VIPCOL_YELLOW"3- "VIPCOL_WHITE"Sunny Smog\n\n"VIPCOL_YELLOW"4- "VIPCOL_WHITE"Cloudy", "Close", "");
- case EOVIP_VIPLEVEL_4: ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "Weather IDs", ""VIPCOL_YELLOW"1- "VIPCOL_WHITE"Sunny\n\n"VIPCOL_YELLOW"2- "VIPCOL_WHITE"Extra Sunny Smog\n\n"VIPCOL_YELLOW"3- "VIPCOL_WHITE"Sunny Smog\n\n"VIPCOL_YELLOW"4- "VIPCOL_WHITE"Cloudy\n\n"VIPCOL_YELLOW"5- "VIPCOL_WHITE"Summer Sun\n\n"VIPCOL_YELLOW"6- "VIPCOL_WHITE"Summer Extra Sunny", "Close", "");
- }
- return 1;
- }
- CMD:vipweather(playerid, params[]) {
- new wid, str[65];
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(sscanf(params, "i", wid)){
- SendClientMessage(playerid, VIPCOLOR_GREEN ,"[USAGE]: /vipweather [Weather ID] - use /weatherids to view available weather IDs");
- SendClientMessage(playerid, VIPCOLOR_GREEN ,"[FUNCTION]: Change your weather");
- return 1;
- }
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_1:{
- if(wid > 2 || wid < 1) return SendClientMessage(playerid, VIPCOLOR_RED,"[ERROR]: You have entered an invalid weather ID, available Weather IDs are {92979C}[1-2]");
- format(str, sizeof(str), "[EO_VIP]: "VIPCOL_YELLOW"You have set the weather ID to "VIPCOL_WHITE"%i", wid);
- SendClientMessage(playerid, VIPCOLOR_ORANGE,str);
- SetPlayerWeather(playerid, wid);
- }
- case EOVIP_VIPLEVEL_2:{
- if(wid > 3 || wid < 1) return SendClientMessage(playerid, VIPCOLOR_RED ,"[ERROR]: You have entered an invalid weather ID, available Weather IDs are {92979C}[1-3]");
- format(str, sizeof(str), "[EO_VIP]: "VIPCOL_YELLOW"You have set the weather ID to "VIPCOL_WHITE"%i", wid);
- SendClientMessage(playerid, VIPCOLOR_ORANGE ,str);
- SetPlayerWeather(playerid, wid);
- }
- case EOVIP_VIPLEVEL_3:{
- if(wid > 4 || wid < 1) return SendClientMessage(playerid, VIPCOLOR_RED,"[ERROR]: You have entered an invalid weather ID, available Weather IDs are {92979C}[1-4]");
- format(str, sizeof(str), "[EO_VIP]: "VIPCOL_YELLOW"You have set the weather ID to "VIPCOL_WHITE"%i", wid);
- SendClientMessage(playerid, VIPCOLOR_ORANGE,str);
- SetPlayerWeather(playerid, wid);
- }
- case EOVIP_VIPLEVEL_4:{
- if(wid > 6 || wid < 1) return SendClientMessage(playerid, VIPCOLOR_RED ,"[ERROR]: You have entered an invalid weather ID, available Weather IDs are {92979C}[1-6]");
- format(str, sizeof(str), "[EO_VIP]: "VIPCOL_YELLOW"You have set the weather ID to "VIPCOL_WHITE"%i", wid);
- SendClientMessage(playerid, VIPCOLOR_ORANGE ,str);
- SetPlayerWeather(playerid, wid);
- }
- }
- return 1;
- }
- CMD:vipvehflip(playerid) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to be in a vehicle to use this command!");
- new currentveh = GetPlayerVehicleID(playerid), Float:_angle;
- GetVehicleZAngle(currentveh, _angle);
- SetVehicleZAngle(currentveh, _angle);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: Your vehicle has been flipped!");
- return 1;
- }
- //VIP Level 2 Commands
- CMD:changevehcolor(playerid, params[]) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(GetPlayerVIPLevel(playerid) < 2) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to have VIP level 2 or above to use this command!");
- new str[128], color1, color2;
- if(sscanf(params, "ii", color1, color2)){
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[USAGE]: /changevehcolor [color 1] [color 2]");
- SendClientMessage(playerid, VIPCOLOR_GREEN, "[FUNCTION]: Change a vehicle's color");
- return 1;
- }
- if(color1 > 255 || color1 < 0 || color2 > 255 || color2 < 0) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You have entered an invalid Color ID!");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to be in a vehicle to use this command!");
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_2:{
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You can't afford changing this vehicle's color");
- GivePlayerMoney(playerid, -1000);
- format(str, sizeof(str), "[EO_VIP]: "VIPCOL_YELLOW"Vehicle color changed to ( "VIPCOL_YELLOW"%i "VIPCOL_WHITE", "VIPCOL_YELLOW"%i "VIPCOL_WHITE"), you've been charged with "VIPCOL_YELLOW"$1000", color1, color2);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, str);
- ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
- }
- case EOVIP_VIPLEVEL_3:{
- if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You can't afford changing this vehicle's color");
- GivePlayerMoney(playerid, -500);
- format(str, sizeof(str), "[EO_VIP]: "VIPCOL_YELLOW"Vehicle color changed to ( "VIPCOL_YELLOW"%i "VIPCOL_WHITE", "VIPCOL_YELLOW"%i "VIPCOL_WHITE"), you've been charged with "VIPCOL_YELLOW"$500", color1, color2);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, str);
- ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
- }
- case EOVIP_VIPLEVEL_4:{
- if(GetPlayerMoney(playerid) < 250) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You can't afford changing this vehicle's color");
- GivePlayerMoney(playerid, -250);
- format(str, sizeof(str), "[EO_VIP]: "VIPCOL_YELLOW"Vehicle color changed to ( "VIPCOL_YELLOW"%i "VIPCOL_WHITE", "VIPCOL_YELLOW"%i "VIPCOL_WHITE"), you've been charged with "VIPCOL_YELLOW"$250", color1, color2);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, str);
- ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
- }
- }
- return 1;
- }
- CMD:vipnos(playerid) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(GetPlayerVIPLevel(playerid) < 2) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to have VIP level 2 or above to use this command!");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to be in a vehicle to use this command!");
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_2:{
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You can't afford to buy this");
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[ERROR]: "VIPCOL_YELLOW"You have added nitrous to this vehicle, you've been charged with "VIPCOL_WHITE"$1000");
- }
- case EOVIP_VIPLEVEL_3:{
- if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You can't afford to buy this");
- GivePlayerMoney(playerid, -500);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have added nitrous to this vehicle, you've been charged with "VIPCOL_WHITE"$500");
- }
- case EOVIP_VIPLEVEL_4:{
- if(GetPlayerMoney(playerid) < 150) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You can't afford to buy this");
- GivePlayerMoney(playerid, -150);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"You have added nitrous to this vehicle, you've been charged with "VIPCOL_WHITE"$150");
- }
- }
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
- return 1;
- }
- CMD:vipenginefix(playerid){
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(GetPlayerVIPLevel(playerid) < 2) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to have VIP level 2 or above to use this command!");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to be in a vehicle to use this command!");
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_3:{
- if(GetPlayerMoney(playerid) < 600)
- GivePlayerMoney(playerid, -600);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"vehicle fixed, you've been charged with "VIPCOL_WHITE"$600");
- }
- case EOVIP_VIPLEVEL_4:{
- if(GetPlayerMoney(playerid) < 150)
- GivePlayerMoney(playerid, -150);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"vehicle fixed, you've been charged with "VIPCOL_WHITE"$150");
- }
- }
- SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
- return 1;
- }
- CMD:vipbodyfix(playerid) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(GetPlayerVIPLevel(playerid) < 2) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to have VIP level 2 or above to use this command!");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to be in a vehicle to use this command!");
- if(GetPlayerMoney(playerid) < 450) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You can't afford this!");
- RepairVehicle(GetPlayerVehicleID(playerid));
- GivePlayerMoney(playerid, -450);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: "VIPCOL_YELLOW"vehicle fixed, you've been charged with "VIPCOL_WHITE"$200");
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
- return 1;
- }
- CMD:vipbasetp(playerid) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(GetPlayerVIPLevel(playerid) < 2) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to have VIP level 2 or above to use this command!");
- if(gettime() - VIPInfo[playerid][e_VIPBaseTeleportCoolDown] < 600) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You cannot use this command now, wait for 10 minutes!");
- VIPInfo[playerid][e_VIPBaseTeleportCoolDown] = gettime();
- TogglePlayerControllable(playerid, false);
- SetPlayerPos(playerid, 3024.9241, -692.5798, 3.3770);
- GameTextForPlayer(playerid, "~y~VIP Base", 2000, 1);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: You have teleported to the VIP base!");
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: You have been temporarily frozen, please wait for the environment to lead!");
- defer VIPBaseTeleportTimer(playerid);
- return 1;
- }
- //VIP Level 3 Commands
- CMD:vipgppreset(playerid){
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(GetPlayerVIPLevel(playerid) < 3) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to have VIP level 3 or above to use this command!");
- if(!VIPInfo[playerid][e_VIPGunPackPreset])
- ShowPlayerDialog(playerid, DIALOG_VIPGPPRESETCREATE, DIALOG_STYLE_MSGBOX, "VIP GunPack Preset Option", "Here you can make a new Gunpack set to spawn via "VIPCOL_WHITE"/vipgppreset\n\n"VIPCOL_YELLOW"You Don't have a GunPack Preset yet, do you want to create one?", "Yes", "No");
- else{
- ShowPlayerDialog(playerid, DIALOG_VIPGPPRESETEDIT, DIALOG_STYLE_LIST, "VIP GunPack Preset Option",
- "Edit Gunpack Preset\n\
- Delete Gunpack Preset\n",
- "Select", "Cancel");
- }
- return 1;
- }
- CMD:vipskin(playerid) {
- if(!IsPlayerVIP(playerid)) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You are not a VIP, you cannot use this command!");
- if(GetPlayerVIPLevel(playerid) < 3) return SendClientMessage(playerid, VIPCOLOR_RED, "[ERROR]: You need to have VIP level 3 or above to use this command!");
- switch(GetPlayerVIPLevel(playerid)){
- case EOVIP_VIPLEVEL_3:{
- ShowPlayerDialog(playerid, DIALOG_VIPSKINS, DIALOG_STYLE_LIST, "VIP SKINS SELECTION "VIPCOL_YELLOW"[DIAMOND]",
- "Maccer\n\
- Andre\n\
- Rich Woman\n\
- CJ\n\
- Stunner\n",
- "Select", "Cancel");
- }
- case EOVIP_VIPLEVEL_4:{
- ShowPlayerDialog(playerid, DIALOG_VIPSKINS, DIALOG_STYLE_LIST, "VIP SKINS SELECTION "VIPCOL_YELLOW"[PLATINUM]",
- "Maccer\n\
- Andre\n\
- Rich Woman\n\
- CJ\n\
- Stunner\n\
- Ryder\n\
- Triad Boss\n\
- Big Smoke\n\
- Cluckin' bell worker\n\
- Michelle\n",
- "Select", "Cancel");
- }
- }
- return 1;
- }
- //VIP Level 4 Commands
- //**Timers---------------------------------------------------------------------------------------------------------------------------------
- //-VIP un-Freeze
- timer VIPBaseTeleportTimer[2000](playerid){
- TogglePlayerControllable(playerid, true);
- SendClientMessage(playerid, VIPCOLOR_ORANGE, "[EO_VIP]: Thanks for your patience, you can now move!");
- }
- //-VIP Advertisement
- task VIPAdvertisementTimer[1800000](){
- foreach(new i : Player){
- if(!IsPlayerVIP(i))
- SendClientMessage(i, VIPCOLOR_GREEN, "[EO_VIP]: "VIPCOL_WHITE"Buy one of four different VIP Levels and gain countless awesome features!");
- }
- }
- //-VIP Messages
- task VIPMessages[900000](){
- SendClientMessageToAllVIPs(VIPTips[random(sizeof(VIPTips))], -1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement