Код:
// YotiVIP by JohnYoti aka [SOG]JohnYoti
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <YSI\y_ini>
forward GodCar();
new IsGodCar[MAX_VEHICLES];
enum pInfo
{
pVipLevel,
pVipGod,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_UserData(playerid,name[],value[]);
public LoadUser_UserData(playerid,name[],value[])
{
INI_Int("VipLevel",PlayerInfo[playerid][pVipLevel]);
return 1;
}
new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;
new vrank[24];
new playerhealth;
new playerarmor;
new money;
new parachute;
new molotov;
new ak47;
new m4;
new event[MAX_PLAYERS];
new joined[MAX_PLAYERS];
new joinable;
new locked[MAX_PLAYERS];
new afk[MAX_PLAYERS];
enum SavePosENUM { Float:sX, Float:sY, Float:sZ, Float:sA, SavedPos };
new SavePos[MAX_PLAYERS][SavePosENUM];
#define PATH "/YotiVIP/%s.ini"
#define VIP 1
#define VIPS 2
#define COMMANDS 3
#define VRULES 4
#define EVENT 5
#define WEAPONS 6
#define COLOR_PINK 0xFFC0CBAA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetTimer("GodCar", 1000, 1);
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddStaticVehicle(522,1255.6143,-784.9655,91.5951,181.3001,0,0); //
AddStaticVehicle(522,1253.6763,-785.4620,91.6089,182.6259,0,0); //
AddStaticVehicle(522,1253.5560,-789.8793,91.5890,179.1418,0,0); //
AddStaticVehicle(522,1256.3900,-789.7311,91.6039,179.1519,0,0); //
AddStaticVehicle(522,1263.5878,-790.7523,91.6041,270.5986,0,0); //
AddStaticVehicle(522,1276.0033,-789.6435,91.6040,270.5246,0,0); //
AddStaticVehicle(522,1261.0299,-786.6370,95.5367,269.1395,0,0); //
AddStaticVehicle(522,1264.6136,-786.6909,95.5239,269.1395,0,0); //
AddStaticVehicle(522,1268.1404,-786.7435,95.5215,269.1395,0,0); //
AddStaticVehicle(522,1261.3290,-784.9822,95.5361,271.0783,0,0); //
AddStaticVehicle(522,1265.0143,-784.9131,95.5226,271.0783,0,0); //
AddStaticVehicle(522,1269.6377,-784.8266,95.5263,271.0783,0,0); //
AddStaticVehicle(411,1245.3798,-743.2420,94.4868,23.5327,0,0); //
AddStaticVehicle(411,1238.6953,-746.8458,94.9088,21.9009,0,0); //
AddStaticVehicle(411,1242.8246,-804.2477,83.8677,181.4875,0,0); //
AddStaticVehicle(411,1243.1334,-816.1277,83.8672,181.5354,0,0); //
AddStaticVehicle(411,1254.7808,-805.8867,83.8677,181.0710,0,0); //
AddStaticVehicle(411,1249.4543,-819.8389,83.8677,167.1120,0,0); //
AddStaticVehicle(522,1307.1274,-800.1333,83.7067,176.6727,0,0); //
AddStaticVehicle(522,1305.0721,-800.6796,83.7171,178.2893,0,0); //
AddStaticVehicle(411,1292.0508,-829.7571,82.8690,89.3566,0,0); //
AddStaticVehicle(411,1283.5376,-829.6615,82.8677,89.3565,0,0); //
AddStaticVehicle(411,1272.8192,-829.5410,82.8677,89.3565,0,0); //
AddStaticVehicle(446,1275.9597,-805.4832,86.1087,268.6018,0,0); //
AddStaticVehicle(409,1250.1270,-762.9095,92.2706,2.9032,1,1); //
AddStaticVehicle(409,1240.8652,-762.9269,92.4430,1.7248,1,1); //
AddStaticVehicle(510,1303.1790,-806.6716,83.7495,174.9521,46,46); //
AddStaticVehicle(510,1302.7264,-811.7932,83.7481,174.9522,46,46); //
AddStaticVehicle(510,1301.6763,-815.6932,83.7410,147.5905,46,46); //
AddStaticVehicle(510,1298.8241,-819.0929,83.7481,129.2429,46,46); //
AddStaticVehicle(510,1291.6488,-819.6622,83.7491,90.6993,46,46); //
AddStaticVehicle(510,1254.6104,-816.8608,83.7444,87.0520,46,46); //
AddStaticVehicle(510,1256.9680,-816.9818,83.7452,87.0524,46,46); //
AddStaticVehicle(510,1259.3660,-817.1056,83.7443,87.0524,46,46); //
AddStaticVehicle(510,1262.2006,-817.2518,83.7442,87.0524,46,46); //
AddStaticVehicle(510,1264.8796,-817.3153,83.7456,88.7939,46,46); //
AddStaticVehicle(510,1268.7338,-818.9944,83.7522,88.0639,46,46); //
AddStaticVehicle(510,1306.6935,-797.9289,83.7487,208.8707,46,46); //
AddStaticVehicle(510,1305.7820,-796.2787,83.7450,208.8690,46,46); //
AddStaticVehicle(510,1304.6018,-793.7761,83.7476,195.5046,46,46); //
AddStaticVehicle(510,1297.7240,-809.7960,83.7453,189.5874,46,46); //
AddStaticVehicle(510,1297.6766,-806.5260,83.7453,176.0008,46,46); //
AddStaticVehicle(510,1297.8530,-804.0201,83.7446,176.0006,46,46); //
AddStaticVehicle(510,1298.0009,-801.9067,83.7444,176.0006,46,46); //
AddStaticVehicle(510,1298.0909,-799.3096,83.7453,179.8778,46,46); //
AddStaticVehicle(510,1377.8270,-859.5356,41.1835,208.0212,46,46); //
AddStaticVehicle(510,1372.3625,-866.1423,40.1255,201.3064,46,46); //
AddStaticVehicle(510,1379.0737,-857.0024,41.7279,27.6842,46,46); //
AddStaticVehicle(510,1370.1139,-867.2572,40.1708,44.8298,46,46); //
playerhealth = CreatePickup(1240, 1, 1277.1648,-797.1986,1089.9375, -1);
playerarmor = CreatePickup(1242, 1, 1287.7124,-803.6247,1089.9375, -1);
money = CreatePickup(1274, 1, 1280.1805,-818.5298,1085.6328, -1);
parachute = CreatePickup(1310, 1, 1295.0917,-825.6777,1085.6328,-1);
molotov = CreatePickup(344, 1, 1236.7643,-823.6004,1083.1563, -1);
ak47 = CreatePickup(355, 1, 1272.7720,-809.9355,1084.0078, -1);
m4 = CreatePickup(356, 1, 1271.4094,-795.9456,1084.1719, -1);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
new string[128], name[24];
SetTimerEx("Autorepair",500,true,"d",playerid);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
if(PlayerInfo[playerid][pVipLevel] >=1)
{
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Welcome %s.You are logged in as VIP Level %d.Use /vcommands to see your commands", name, PlayerInfo[playerid][pVipLevel]);
SendClientMessage(playerid, 0xADFF2FAA, string);
SendClientMessage(playerid, 0xADFF2FAA, "Use /vrules to see the VIP rules");
}
}
else if(PlayerInfo[playerid][pVipLevel] == 0)
{
return 1;
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"UserData");
INI_WriteInt(File,"VipLevel",PlayerInfo[playerid][pVipLevel]);
INI_Close(File);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid,1261.1808,-785.3730,1091.9063,3);
if(PlayerInfo[playerid][pVipLevel] >=1) {
{
new Text3D:label = Create3DTextLabel("VIP", 0x28BA9AFF,30.0,40.0,50.0,40.0,-1,0);
Attach3DTextLabelToPlayer(label, playerid, 0,0,0.5);
}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
if(afk[playerid] == 1)
{
return 0;
}
new name[24];
if(text[0] == '#' && PlayerInfo[playerid][pVipLevel] >=1)
{
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
new string[128];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"{86F54E}VIP {4EF2F5}CHAT {E80C0C}%s: {5AF252}%s: {52F2F2}%s",vrank, name,text[1]);
SendToVip(-1,string);
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 10.0);
return 0;
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, 1258.6992,-785.3705,92.0302);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SendClientMessage(playerid, 0x7CFC00AA, "You left the VIP House");
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == playerhealth) return SetPlayerHealth(playerid, 100);
if(pickupid == playerarmor) return SetPlayerArmour(playerid, 100);
if(pickupid == money) return GivePlayerMoney(playerid, 1000);
if(pickupid == parachute) return GivePlayerWeapon(playerid, 46, 1);
if(pickupid == molotov) return GivePlayerWeapon(playerid, 18, 5);
if(pickupid == ak47) return GivePlayerWeapon(playerid, 30, 100);
if(pickupid == m4) return GivePlayerWeapon(playerid, 31, 100);
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if((newinteriorid == 5 || newinteriorid == 2 || newinteriorid == 12) && GetPlayerVirtualWorld(playerid) == 0) SetPlayerVirtualWorld(playerid, 1);
if((oldinteriorid == 5 || oldinteriorid == 2 || oldinteriorid == 12) && newinteriorid == 0 && GetPlayerVirtualWorld(playerid) == 1) SetPlayerVirtualWorld(playerid, 0);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == COMMANDS)
{
if(response == 0)
{
return 1;
}
if(response == 1)
{
return 1;
}
}
if(dialogid == VRULES)
{
if(response == 0)
{
return 1;
}
if(response == 1)
{
SendClientMessage(playerid, 0x4B00B0AA, "Thanks for accepting the rules");
return 1;
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
CMD:ballooncmds(playerid, params[])
{
#define DIALOG_B 2
if (Vip[playerid] >= 1)
{
ShowPlayerDialog(playerid, DIALOG_B, DIALOG_STYLE_MSGBOX, "Balloon Commands", "/rballoon red balloon\n/bballon blue balloon\n/gballon grey balloon\n/rup - Red balloon Up, /rdown - Red Balloon Down\n/bup - Blue balloon Up, /bdown - Blue Balloon Down\n/gup - Grey balloon Up, /gdown - Grey Balloon Down", "Close", "");
}
return 1;
}
CMD:rballoon(playerid, params[])
{
if (Vip[playerid] >= 1)
{
SetPlayerPos(playerid,382.0658, 2537.5269, 15.6774);
SendClientMessage(playerid, 0xDEEE20FF, "Welcome to Red Balloon");
xVip(playerid,"RBALLOON");
}
return 1;
}
CMD:bballoon(playerid, params[])
{
if (Vip[playerid] >= 1)
{
SetPlayerPos(playerid,153.8562, -1879.2620, 2.7823);
SendClientMessage(playerid, 0xDEEE20FF, "Welcome to Blue Balloon");
xVip(playerid,"BBALLOON");
}
return 1;
}
CMD:gballoon(playerid, params[])
{
if (Vip[playerid] >= 1)
{
SetPlayerPos(playerid,-1738.4253, -137.0162, 2.6011);
SendClientMessage(playerid, 0xDEEE20FF, "Welcome to Grey Balloon");
xVip(playerid,"GBALLOON");
}
return 1;
}
CMD:rup(playerid, params[])
{
if (Vip[playerid] >= 1)
{
MoveObject(b1, 237.11, 2547.02, 354.68, 3);
SendClientMessage(playerid, 0xDEEE20FF, "Going!");
xVip(playerid,"RUP");
}
return 1;
}
CMD:bup(playerid, params[])
{
if (Vip[playerid] >= 1)
{
MoveObject(b2, 455.3196, -1870.2194, 824.6305, 3);
SendClientMessage(playerid, 0xDEEE20FF, "Going!");
xVip(playerid,"BUP");
}
return 1;
}
CMD:gup(playerid, params[])
{
if (Vip[playerid] >= 1)
{
MoveObject(b3,-1752.5271, -8.4947, 282.0090, 3);
SendClientMessage(playerid, 0xDEEE20FF, "Going!");
xVip(playerid,"GUP");
}
return 1;
}
CMD:rdown(playerid, params[])
{
if (Vip[playerid] >= 1)
{
MoveObject(b1, 365.56, 2537.17, 15.68, 5);
SendClientMessage(playerid, 0xDEEE20FF, "Going Down!");
xVip(playerid,"RDOWN");
}
return 1;
}
CMD:bdown(playerid, params[])
{
if (Vip[playerid] >= 1)
{
MoveObject(b2, 154.7741, -1858.2334, 2.7823 , 5);
SendClientMessage(playerid, 0xDEEE20FF, "Going Down!");
xVip(playerid,"BDOWN");
}
return 1;
}
CMD:gdown(playerid, params[])
{
if (Vip[playerid] >= 1)
{
MoveObject(b3, -1748.0038, -154.6030, 2.6011, 5);
SendClientMessage(playerid, 0xDEEE20FF, "Going Down!");
xVip(playerid,"GDOWN");
}
return 1;
}
CMD:Laseron(playerid, params[])
{
if (Vip[playerid] >= 1)
{
MoveObject(b3, -1748.0038, -154.6030, 2.6011, 5);
SendClientMessage(playerid, 0xDEEE20FF, "Laseron!");
xVip(playerid,"Laseron");
}
return 1;
}
CMD:vheal(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid, 0xFF0000AA, "You must be Silver VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has healed himself", vrank, name);
SendClientMessage(playerid, 0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You healed yourself");
SetPlayerHealth(playerid, 100);
return 1;
}
forward SendToVip(color,const string[]);
public SendToVip(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
if(PlayerInfo[i][pVipLevel] >= 1)
SendClientMessage(i, color, string);
}
}
CMD:varmour(playerid, params[])
{
new name[24],string[128];
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid, 0xFF0000AA, "You must be Silver VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has armoured himself", vrank, name);
SendClientMessage(playerid, 0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You armoured yourself");
SetPlayerArmour(playerid, 100);
return 1;
}
CMD:vweapons(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid,0xFF0000AA, "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has given himself some VIP weapons", vrank, name);
SendToVip(0x32CD32AA , string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You gave yourself some VIP weapons");
GivePlayerWeapon(playerid, 35, 5000);
GivePlayerWeapon(playerid, 32, 5000);
GivePlayerWeapon(playerid, 30, 5000);
GivePlayerWeapon(playerid, 26, 5000);
SendClientMessage(playerid, 0xFF0000AA, "NOTE: Use the RPG wisely!");
return 1;
}
CMD:vcar(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid,0xFF0000AA, "You must be Silver VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
new Float:x, Float:y, Float:z, Float:Angle;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, Angle);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s's Personal VIP Car",name);
vehicle_id = CreateVehicle( 411, x, y, z, Angle, 0,0, 120 );
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 1.0);
PutPlayerInVehicle(playerid, vehicle_id, 0);
format(string, sizeof(string), "%s %s has spawned a Personal VIP Car", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You spawned a Personal VIP Car");
return 1;
}
CMD:vskin(playerid ,params[])
{
new giveplayerid, skin ,sendername[MAX_PLAYER_NAME], receivername[MAX_PLAYER_NAME], string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xFF0000AA, "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(sscanf(params, "ui", giveplayerid, skin)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /vskin [playerid] [SkinID]");
if(skin > 299 || skin < 1) return SendClientMessage(playerid, 0xFF0000AA, "SkinID can't below 1 and above 299");
else if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Player is not connected");
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, receivername, sizeof(receivername));
format(string, sizeof(string), "You have been given Skin ID %d by %s %s", skin, vrank, sendername);
SendClientMessage(giveplayerid, 0x00FFFFFF, string);
format(string, sizeof(string), "%s %s has set Skin ID %d to %s", vrank, sendername, skin, receivername);
SendToVip(0x32CD32AA , string);
format(string, sizeof(string), "VIP: You set %s Skin ID %d", receivername, skin);
SendClientMessage(playerid, 0xFF00FFFF, string);
SetPlayerSkin(giveplayerid, skin);
}
return 1;
}
CMD:vweather(playerid, params[])
{
new weather, name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xFF0000AA , "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has set himself weather ID %d", vrank, name, weather);
SendToVip(0x32CD32AA , string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You changed your weather to ID 0");
SetPlayerWeather(playerid, 0);
return 1;
}
CMD:vkick(playerid, params[])
{
new giveplayerid, reason[24], string[125], name[24], name2[24];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(sscanf(params, "us[128]", giveplayerid, reason)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /vkick [playerid] [reason]");
else if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Player is not connected");
else
{
GetPlayerName(giveplayerid, name, sizeof(name));
GetPlayerName(playerid, name2, sizeof(name2));
format(string, sizeof(string), "Player %s has been kicked by %s %s. Reason: %s", name, vrank, name2, reason, giveplayerid);
SendClientMessageToAll(0xFF0000AA, string);
format(string, sizeof(string), "%s %s has kicked %s.Reason: %s", vrank, name2, name, reason, giveplayerid);
SendToVip(0x32CD32AA, string);
format(string, sizeof(string), "VIP: You kicked %s.Reason: %s", name, reason, giveplayerid);
SendClientMessage(playerid, 0xFF00FFFF, string);
Kick(giveplayerid);
}
return 1;
}
CMD:vspawn(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xFF0000AA, "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has spawned himself", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You spawned yourself");
SpawnPlayer(playerid);
return 1;
}
CMD:vcarcolor(playerid, params[])
{
new ColorID, ColorID2, vehicleid, name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xFF0000AA, "You must be Gold VIP to use this command");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "You are not in a vehicle");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(sscanf(params, "dd", ColorID,ColorID2)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /carcolor [Color1] [Color2]");
else if(ColorID < 0 || ColorID > 126) return SendClientMessage(playerid, 0xFF0000AA, "Color1 cannot be above 126 or below 0!");
else if(ColorID2 < 0 || ColorID2 > 126) return SendClientMessage(playerid, 0xFF0000AA, "Color2 cannot be above 126 or below 0!");
else
{
vehicleid = GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, ColorID, ColorID2);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has changed his car color!", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You changed your carcolor");
}
return 1;
}
CMD:vminigun(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
GivePlayerWeapon(playerid, 38, 100000000);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has given himself a minigun", vrank,name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You gave yourself a minigun.Use it wisely!");
return 1;
}
CMD:setvip(playerid, params[])
{
new victimname[MAX_PLAYER_NAME], vipname[MAX_PLAYER_NAME], viplevel, giveplayerid, string[128];
if(IsPlayerAdmin(playerid))
{
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(sscanf(params, "ui", giveplayerid, viplevel)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /setvip [playerid] [level]");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Player is not connected");
if(viplevel > 3 || viplevel < 0) return SendClientMessage(playerid, 0xFF0000AA, "Valid levels: 1-3");
PlayerInfo[giveplayerid][pVipLevel] = viplevel;
GetPlayerName(giveplayerid, victimname, sizeof(victimname));
GetPlayerName(playerid, vipname, sizeof(vipname));
format(string,sizeof(string),"%s %s (%d) has set %s (%d) VIP level to %i",vrank, vipname, playerid, victimname, giveplayerid, viplevel);
SendClientMessage(playerid,0x32CD32AA , string);
format(string, sizeof(string), "VIP: You set %s VIP level to %i", victimname, viplevel, giveplayerid);
SendClientMessage(playerid, 0xFF00FFFF, string);
return 1;
}
else return SendClientMessage(playerid, 0xFF0000AA, "You are not RCON admin");
}
CMD:vips(playerid, params[])
{
new name[24], string[128];
new vips = 0;
SendClientMessage(playerid,0x2E8B57AA,"|__________________VIP's Online__________________|");
for(new i = 0; i < MAX_PLAYERS; i++){
if (IsPlayerConnected(i)){
if(PlayerInfo[i][pVipLevel] >= 1){
GetPlayerName(i, name,sizeof(name));
format(string,sizeof string,"%s - VIP Level: %d", name, PlayerInfo[i][pVipLevel]);
SendClientMessage(playerid,0xFF4500AA,string);
vips ++;
}
}
}
if(vips== 0){
SendClientMessage(playerid, 0xFF0000AA, "No VIPs found.");
}
return 1;
}
CMD:vboat(playerid, params[])
{
new string[128], name[24];
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid,0xFF0000AA, "You must be Silver VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
new Float:x, Float:y, Float:z, Float:Angle;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, Angle);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s's Personal VIP Boat",name);
vehicle_id = CreateVehicle( 446, x, y, z, Angle, 0,0, 120 );
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
PutPlayerInVehicle(playerid, vehicle_id, 0);
format(string, sizeof(string), "%s %s has spawned a Personal VIP Boat", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You spawned a Personal VIP Boat");
return 1;
}
CMD:vsay(playerid, params[])
{
new string[128], name[24];
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid, 0xFF0000AA, "You must be Silver VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(sscanf(params, "s[128]", string)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /vsay [message]");
GetPlayerName(playerid, name ,sizeof(name));
format(string, sizeof(string), "%s %s: %s", vrank, name, params);
SendClientMessageToAll(0x33CCFFAA, string);
return 1;
}
CMD:vfix(playerid, params[])
{
new name[24] ,string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xFF0000AA, "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "You are not in a vehicle");
RepairVehicle(GetPlayerVehicleID(playerid));
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has fixed his vehicle", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You fixed your vehicle");
return 1;
}
CMD:vjetpack(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command"); if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has spawned a jetpack", vrank, name);
SendToVip(0x32CD32AA , string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You spawned a jetpack");
return 1;
}
CMD:vbike(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid,0xFF0000AA, "You must be Silver VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
new Float:x, Float:y, Float:z, Float:Angle;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, Angle);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s's Personal VIP Bike",name);
vehicle_id = CreateVehicle( 510, x, y, z, Angle, 0,0, 120 );
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 1.0);
PutPlayerInVehicle(playerid, vehicle_id, 0);
format(string, sizeof(string), "%s %s has spawned a Personal VIP Bike", vrank, name);
SendToVip(0x32CD32AA , string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You spawned a Personal VIP Bike");
return 1;
}
CMD:vpm(playerid, params[])
{
new string[128], name2[24], giveplayerid, name[24], string2[128];
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid, 0xFF0000AA, "You must be Silver VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(sscanf(params, "us[128]", giveplayerid, string)) return SendClientMessage(playerid,0xAFAFAFAA, "USAGE: /vpm [playerid] [message]");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid,0xFF0000AA, "Player is not connected");
if(playerid == giveplayerid) return SendClientMessage(playerid,0xFF0000AA, "You cannot PM yourself");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, name2, sizeof(name2));
format(string,sizeof(string), "PM Sent to %s(%d): %s", name2, giveplayerid, string);
SendClientMessage(playerid,0xFF9900AA,string);
format(string2,sizeof(string2), "PM From %s %s(%d): %s", vrank, name, giveplayerid, string2);
SendClientMessage(giveplayerid,0xFF9900AA,string2);
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 10.0);
return 1;
}
CMD:vgoto(playerid, params[])
{
new name[24], giveplayerid, string[128], name2[24];
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid,0xFF0000AA, "You must be Silver VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(sscanf(params, "us[128]", giveplayerid)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /vgoto [playerid]");
else if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Player is not connected");
else
{
GetPlayerName(giveplayerid, name, sizeof(name));
GetPlayerName(playerid, name2, sizeof(name2));
format(string, sizeof(string), "%s %s has teleported to %s", vrank, name2, name, giveplayerid);
SendToVip(0x32CD32AA, string);
format(string, sizeof(string), "VIP: You teleported to %s", name, giveplayerid);
SendClientMessage(playerid, 0xFF00FFFF, string);
new Float:x, Float:y, Float:z;
GetPlayerPos(giveplayerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
}
return 1;
}
new carid;
CMD:vgodcar(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "You are not in a vehicle");
if(IsGodCar[carid] == 0)
{
carid = GetPlayerVehicleID(playerid);
IsGodCar[carid] = 1;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has enabled GodCar Mode!", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "You enabled GodCar Mode!");
}
else
if(IsGodCar[carid] == 1)
{
IsGodCar[carid] = 0;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has disabled GodCar Mode!", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "You disabled GodCar Mode!");
}
return 1;
}
CMD:vgod(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xFF0000AA, "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(PlayerInfo[playerid][pVipGod] == 0)
{
PlayerInfo[playerid][pVipGod] = 1;
SetPlayerHealth(playerid, 999999999);
GetPlayerName(playerid,name,sizeof(name));
format(string, sizeof(string), "%s %s has enabled VIP GodMode", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "You have enabled VIP GodMode!");
}
else if (PlayerInfo[playerid][pVipGod] == 1)
{
PlayerInfo[playerid][pVipGod] = 0;
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xAFAFAFAA, "You must be Gold VIP to use this command");
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid,name,sizeof(name));
format(string, sizeof(string), "%s %s has disabled VIP GodMode", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "You have disabled VIP GodMode!");
}
return 1;
}
CMD:vmotorbike(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid,0xFF0000AA, "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
new Float:x, Float:y, Float:z, Float:Angle;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, Angle);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s's Personal VIP Motorbike",name);
vehicle_id = CreateVehicle( 522, x, y, z, Angle, 0,0, 120 );
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 1.0);
PutPlayerInVehicle(playerid, vehicle_id, 0);
format(string, sizeof(string), "%s %s has spawned a Personal VIP Motorbike", vrank, name);
SendToVip(0x32CD32AA , string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You spawned a Personal VIP Motorbike");
return 1;
}
CMD:vann(playerid, params[])
{
new message[24], time, style, string[128], name[24];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xFF0000AA, "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(sscanf(params, "iis[128]", style, time, message)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /announce [style[0-6] [time in milliseconds] [message]");
else if(style == 2) return SendClientMessage(playerid,0xFF0000AA, "Style 2 is bugged! Please don't use it");
else if(style < 0 || style > 6) return SendClientMessage(playerid,0xFF0000AA, "Invalid Style: 0-6");
else if(time == 20*1000) return SendClientMessage(playerid,0xFF0000AA, "No longer than 20 seconds");
else {
GameTextForAll(message, time, style);
}
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has made an announcement", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You made an announcement");
return 1;
}
CMD:vnos(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "You are not in a vehicle");
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
GetPlayerName(playerid, name ,sizeof(name));
format(string, sizeof(string), "%s %s has added nos to his car", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You added nos to your car");
return 1;
}
CMD:vhouse(playerid, params[])
{
new string[128], name[24];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid,0xFF0000AA, "You must be Platinum VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
SetPlayerPos( playerid, 1270.0016,-777.6048,1091.9063 );
SetPlayerInterior( playerid, 5 );
RemovePlayerFromVehicle( playerid );
GameTextForPlayer(playerid, "~g~Welcome To VIP House", 5000, 6);
SendClientMessage(playerid, 0x7CFC00AA, "Welcome to VIP House");
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has teleported to VIP House", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You teleported to VIP House");
return 1;
}
CMD:vheli(playerid, params[])
{
new string[128], name[24];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid,0xFF0000AA, "You must be Platinum VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
new Float:x, Float:y, Float:z, Float:Angle;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, Angle);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s's Personal VIP Heli",name);
vehicle_id = CreateVehicle( 487, x, y, z, Angle, 0,0, 120);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
PutPlayerInVehicle(playerid, vehicle_id, 0);
format(string, sizeof(string), "%s %s has spawned a Personal VIP Heli", vrank, name);
SendToVip(0x32CD32AA, string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You spawned a Personal VIP Heli");
return 1;
}
CMD:vcommands(playerid ,params[])
{
new vcmds[700];
strcat(vcmds, "{FC0000}Level 1:\n");
strcat(vcmds, "{97FC00}/vheal\n");
strcat(vcmds, "{97FC00}/varmour\n");
strcat(vcmds, "{97FC00}/vcar\n");
strcat(vcmds, "{97FC00}/vboat\n");
strcat(vcmds, "{97FC00}/vsay\n");
strcat(vcmds, "{97FC00}/vbike\n");
strcat(vcmds, "{97FC00}/vpm\n");
strcat(vcmds, "{97FC00}/vgoto\n");
strcat(vcmds, "{97FC00}/vafk\n");
strcat(vcmds, "{97FC00}/back\n");
strcat(vcmds, "{FC0000}Level 2:\n");
strcat(vcmds, "{97FC00}/vweapons\n");
strcat(vcmds, "{97FC00}/vskin\n");
strcat(vcmds, "{97FC00}/vweather\n");
strcat(vcmds, "{97FC00}/vspawn\n");
strcat(vcmds, "{97FC00}/vcarcolor\n");
strcat(vcmds, "{97FC00}/vgod\n");
strcat(vcmds, "{97FC00}/vmotorbike\n");
strcat(vcmds, "{97FC00}/vann\n");
strcat(vcmds, "{97FC00}/vcc\n");
strcat(vcmds, "{FC0000}Level 3:\n");
strcat(vcmds, "{97FC00}/vkick\n");
strcat(vcmds, "{97FC00}/vminigun\n");
strcat(vcmds, "{97FC00}/vfix\n");
strcat(vcmds, "{97FC00}/vjetpack\n");
strcat(vcmds, "{97FC00}/vgodcar\n");
strcat(vcmds, "{97FC00}/vnos\n");
strcat(vcmds, "{97FC00}/vhouse\n");
strcat(vcmds, "{97FC00}/vheli\n");
strcat(vcmds, "{97FC00}/vplane\n");
strcat(vcmds, "{97FC00}/eventhelp\n");
strcat(vcmds, " " "\n");
strcat(vcmds, "{FC0000}NOTE: Use '#' to chat with other VIPs (VIP Chat)\n");
strcat(vcmds, " " "\n");
strcat(vcmds, "{69F0FA}/vhelp - This is player command to ask for help from VIPs\n");
ShowPlayerDialog(playerid, COMMANDS, DIALOG_STYLE_MSGBOX, "VIP Commands",vcmds,"OK","");
return 1;
}
CMD:vhelp(playerid, params[])
{
new string[128], name[24];
if(sscanf(params, "s[128]", string)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /vhelp [question]");
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s (ID: %d) has asked a question: %s", name,playerid, params);
SendToVip(0x10F441AA, string);
return 1;
}
CMD:vrules(playerid, params[])
{
new vrules[500];
strcat(vrules, "{FFFFFF}Do {F21111}NOT {FFFFFF}type /vhouse to go to refill health when you are fighting!\n");
strcat(vrules, "Do {F21111}NOT {FFFFFF}type /vhouse to go to refill armor when you are fighting!\n");
strcat(vrules, "Do {F21111}NOT {FFFFFF}type /vhouse to go to refill bullets when you are fighting!\n");
strcat(vrules, "Use the RPG wisely! {F21111}DON'T {FFFFFF}kill players randomly!\n");
strcat(vrules, "Use the minigun wisely! {F21111}DON'T {FFFFFF}kill players randomly!\n");
ShowPlayerDialog(playerid, VRULES, DIALOG_STYLE_MSGBOX, "VIP Rules", vrules, "OK", "Cancel");
return 1;
}
CMD:vplane(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid,0xFF0000AA, "You must be Platinum VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
new Float:x, Float:y, Float:z, Float:Angle;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, Angle);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s's Personal VIP Plane",name);
vehicle_id = CreateVehicle( 476, x, y, z, Angle, 0,0, 120 );
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
PutPlayerInVehicle(playerid, vehicle_id, 0);
format(string, sizeof(string), "%s %s has spawned a Personal VIP Plane", vrank, name);
SendToVip(0x32CD32AA , string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You spawned a Personal VIP Plane");
return 1;
}
CMD:joinevent(playerid, params[])
{
if(joinable == 1 && joined[playerid] == 0)
{
new Float:x, Float:y, Float:z;
SetPlayerPos(playerid, x,y,z);
joined[playerid] = 1;
TogglePlayerControllable(playerid, false);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
ResetPlayerWeapons(playerid);
if (IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]);
SetVehicleZAngle(GetPlayerVehicleID(playerid), SavePos[playerid][sA]);
}
else
{
SetPlayerPos(playerid, SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]);
SetPlayerFacingAngle(playerid, SavePos[playerid][sA]);
}
return 1;
}
else if(joinable == 0 || event[playerid] == 0)
{
SendClientMessage(playerid, 0xFF0000AA, "Event isn't joinable anymore or there aren't any events created");
}
else if(joined[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000AA, "You already joined the event");
}
return 1;
}
CMD:addweapons(playerid, params[])
{
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
{
new weaponID;
if(sscanf(params,"i",weaponID)) return SendClientMessage(playerid,0xAFAFAFAA,"Usage: /addweapons [weaponid]");
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(joined[i]==1)
{
GivePlayerWeapon(i,weaponID,9999);
}
}
}
return 1;
}
CMD:startevent(playerid, params[])
{
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
{
if(event[playerid] == 0) return SendClientMessage(playerid, 0xFF0000AA, "There is no event created");
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
TogglePlayerControllable(i,true);
GameTextForAll("~g~EVENT STARTED", 5000, 4);
}
}
}
return 1;
}
CMD:stopevent(playerid, params[])
{
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
if(event[playerid] == 0) return SendClientMessage(playerid, 0xFF0000AA, "There isn't any event created to stop");
SendClientMessage(playerid, 0xFF0000AA, "The event has been stopped by an Admin");
GameTextForAll("~r~EVENT STOPPED", 5000, 4);
event[playerid] = 0;
for(new i = 0;i<MAX_PLAYERS; i++)
{
if(joined[i] == 1)
{
joined[i] = 0;
SpawnPlayer(i);
}
}
return 1;
}
CMD:createevent(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
if(event[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, "There is already an event created");
GetPlayerName(playerid, name,sizeof(name));
format(string, sizeof(string), "%s %s has started an event.Type /joinevent to join the event", vrank, name);
SendClientMessageToAll(0xFF7F50AA, string);
GameTextForAll("~r~EVENT! TYPE /JOINEVENT TO JOIN THE EVENT", 5000, 4);
event[playerid] = 1;
joinable = 1;
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
if (IsPlayerInAnyVehicle(playerid))
{
GetVehiclePos(GetPlayerVehicleID(playerid), SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]);
GetVehicleZAngle(GetPlayerVehicleID(playerid), SavePos[playerid][sA]);
}
else
{
GetPlayerPos(playerid, SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]);
GetPlayerFacingAngle(playerid, SavePos[playerid][sA]);
}
SavePos[playerid][SavedPos] = 1;
return 1;
}
CMD:lockevent(playerid, params[])
{
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
if(event[playerid] == 0) return SendClientMessage(playerid, 0xFF0000AA, "There isn't any event created to lock");
if(locked[playerid] == 1) return SendClientMessage(playerid,0xFF0000AA, "Event is already locked");
joinable = 0;
locked[playerid] = 1;
SendClientMessage(playerid, 0xFF0000AA, "Event has been locked by an Admin");
return 1;
}
CMD:eventhelp(playerid, params[])
{
if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, 0xFF0000AA, "You must be Platinum VIP to use this command");
SendClientMessage(playerid, 0xFFFF82AA, "Event Commands: /createevent, /startevent, /addweapons, /lockevent, /stopevent");
return 1;
}
CMD:vafk(playerid, params[])
{
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid, 0xFF0000AA, "You must be Silver VIP to use this command");
if(afk[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, "You are already in AFK Mode.Type /back first");
GameTextForPlayer(playerid, "~r~AFK", 5000, 4);
SendClientMessage(playerid, 0x00FF7FAA, "You are now in AFK Mode! Type /back to play normally");
SendClientMessage(playerid, 0xFF0000AA, "WARNING!: You will not be able to write ANYTHING during AFK Mode");
TogglePlayerControllable(playerid, false);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
afk[playerid] = 1;
return 1;
}
CMD:back(playerid, params[])
{
if(PlayerInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid, 0xFF0000AA, "You must be Silver VIP to use this command");
if(afk[playerid] == 0) return SendClientMessage(playerid, 0xFF0000AA, "You are not in AFK Mode");
GameTextForPlayer(playerid, "~g~BACK", 5000, 4);
SendClientMessage(playerid, 0x00FF7FAA, "You are not in AFK Mode anymore.You will now be able to write");
TogglePlayerControllable(playerid, true);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
afk[playerid] = 0;
return 1;
}
CMD:vcc(playerid, params[])
{
new name[24], string[128];
if(PlayerInfo[playerid][pVipLevel] < 2) return SendClientMessage(playerid, 0xFF0000AA, "You must be Gold VIP to use this command");
if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Silver VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Gold VIP"; }
else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Platinum VIP"; }
ClearChat(playerid);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s has cleared the chat", vrank, name);
SendToVip(0x32CD32AA , string);
SendClientMessage(playerid, 0xFF00FFFF, "VIP: You cleared the chat");
return 1;
}
public GodCar()
{
for(new v=0;v<MAX_VEHICLES;v++)
{
if(IsGodCar[v] == 1)
{
RepairVehicle(v);
}
}
return 1;
}
stock YotiVIP(playerid)
{
new Users[200];
GetPlayerName(playerid, name, sizeof(name));
format(Users, sizeof(Users),"YotiVIP/%s.ini",name);
return file;
}
stock UserPath(playerid)
{
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),PATH,name);
return string;
}
stock ClearChat(playerid)
{
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, " ");
return 1;
}