So i have cmd:viplocker but everytime i type /viplocker and click weapons its says..
AdmWarning: Marcus Copeland is possibly trying to spoof a dialog ID 1901, even its server sided
AdmWarning: Marcus Copeland is possibly trying to spoof a dialog ID 1901, even its server sided
Code:
if(dialogid == DIALOG_GUNSELECT) // VIP Locker /viplocker
{
if(response)
{
if(listitem == 0)
{
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 100 )
{
SendClientMessageEx(playerid, COLOR_GREY, "You already have full health.");
return 1;
}
SetPlayerHealth(playerid, 100);
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You have used a first aid kit, you now have 100.0 HP.");
}
if(listitem == 1)
{
new Float:armour;
GetPlayerArmour(playerid, armour);
if(armour >= 100)
{
SendClientMessageEx(playerid, COLOR_GREY, "You already have full armor.");
return 1;
}
if(PlayerInfo[playerid][pDonateRank] == 1)
{
if(GetPlayerCash(playerid) < 10000)
{
SendClientMessageEx(playerid, COLOR_GREY,"You can't afford the $10000!");
return 1;
}
GivePlayerCash(playerid, -15000);
SetPlayerArmour(playerid, 100);
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You paid $10000 for a kevlar vest.");
}
else if(PlayerInfo[playerid][pDonateRank] == 2)
{
if(GetPlayerCash(playerid) < 6000)
{
SendClientMessageEx(playerid, COLOR_GREY,"You can't afford the $6000!");
return 1;
}
GivePlayerCash(playerid, -10000);
SetPlayerArmour(playerid, 100);
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You paid $6000 for a kevlar vest.");
}
if(PlayerInfo[playerid][pDonateRank] >= 3)
{
SetPlayerArmour(playerid, 100);
}
}
if(listitem == 2)
{
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
ShowPlayerDialog(playerid, VIPWEPSMENU, DIALOG_STYLE_LIST, "VIP Weapons", "Desert Eagle (3)\nSPAS-12 (5)\nM4 (4)\nAK-47 (4)\nShotgun (2)\nMP5 (3)\nSniper (5)\nSilenced Pistol (2)\nGolf Club (1)\nBat (1)\nDildo (1)\nSword (1)", "Select", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You must be a VIP member to access the gun lockers.");
}
}
if(listitem == 3)
{
if(PlayerInfo[playerid][pDonateRank] >= 2)
{
ShowPlayerDialog( playerid, 3496, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin changes are free here.", "Wear", "Cancel" );
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You must be at least Silver VIP to access the clothes corner. In the clothes corner you can get ANY skin.");
}
}
if(listitem == 4)
{
if(PlayerInfo[playerid][pDonateRank] >= 2)
{
ShowPlayerDialog(playerid, 7484, DIALOG_STYLE_LIST, "VIP: Job Center", "Detective\nLawyer\nWhore\nDrugs Dealer\nBodyguard\nMechanic\nArms Dealer\nBoxer\nDrugs Smuggler\nTaxi Driver\nCraftsman\nBartender\nTrucker", "Proceed", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You must be at least Silver VIP to access the job center.");
}
}
if(listitem == 5)
{
ShowPlayerDialog(playerid, 7486, DIALOG_STYLE_LIST, "VIP: VIP Color", "On\nOff", "Proceed", "Cancel");
}
}
}
if(dialogid == VIPWEPSMENU)
{
if(!response) return 1;
if(PlayerInfo[playerid][pDonateRank] < 3 && PlayerInfo[playerid][pTokens] == 0)
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have any tokens! You get tokens every paycheck.");
return 1;
}
if(PlayerInfo[playerid][pConnectTime] < 2 || PlayerInfo[playerid][pGunRes] > 0) return SendClientMessageEx(playerid, COLOR_GRAD2, "You cannot use this as you are currently restricted from possessing weapons!");
switch( listitem )
{
case 0:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] < 3)
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
PlayerInfo[playerid][pTokens] -= 3;
format(string, sizeof(string), "VIP: You have traded 3 tokens for a Desert Eagle, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
GivePlayerValidWeapon(playerid, 24, 60000);
}
case 1:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] >= 5)
{
PlayerInfo[playerid][pTokens] -= 5;
format(string, sizeof(string), "VIP: You have traded 5 tokens for a SPAS-12, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
}
GivePlayerValidWeapon(playerid, 27, 60000);
}
case 2:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] < 4)
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
PlayerInfo[playerid][pTokens] -= 4;
format(string, sizeof(string), "VIP: You have traded 4 tokens for an M4, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
GivePlayerValidWeapon(playerid, 31, 60000);
}
case 3:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] < 4)
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
PlayerInfo[playerid][pTokens] -= 4;
format(string, sizeof(string), "VIP: You have traded 4 tokens for an AK-47, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
GivePlayerValidWeapon(playerid, 30, 60000);
}
case 4:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] < 2)
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
PlayerInfo[playerid][pTokens] -= 2;
format(string, sizeof(string), "VIP: You have traded 2 tokens for a shotgun, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
GivePlayerValidWeapon(playerid, 25, 60000);
}
case 5:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] < 3)
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
PlayerInfo[playerid][pTokens] -= 3;
format(string, sizeof(string), "VIP: You have traded 3 tokens for an MP5, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
GivePlayerValidWeapon(playerid, 29, 60000);
}
case 6:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] > 4)
{
PlayerInfo[playerid][pTokens] -= 5;
format(string, sizeof(string), "VIP: You have traded 5 tokens for a sniper rifle, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
}
GivePlayerValidWeapon(playerid, 34, 60000);
}
case 7:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] > 1)
{
PlayerInfo[playerid][pTokens] -= 2;
format(string, sizeof(string), "VIP: You have traded 2 tokens for a silenced pistol, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
}
GivePlayerValidWeapon(playerid, 23, 60000);
}
case 8:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] > 0)
{
PlayerInfo[playerid][pTokens] -= 1;
format(string, sizeof(string), "VIP: You have traded a token for a golf club, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
}
GivePlayerValidWeapon(playerid, 2, 60000);
}
case 9:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] > 0)
{
PlayerInfo[playerid][pTokens] -= 1;
format(string, sizeof(string), "VIP: You have traded a token for a baseball bat, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
}
GivePlayerValidWeapon(playerid, 5, 60000);
}
case 10:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] > 0)
{
PlayerInfo[playerid][pTokens] -= 1;
format(string, sizeof(string), "VIP: You have traded a token for a dildo, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
}
GivePlayerValidWeapon(playerid, 10, 60000);
}
case 11:
{
if(PlayerInfo[playerid][pDonateRank] < 3)
{
if(PlayerInfo[playerid][pTokens] > 0)
{
PlayerInfo[playerid][pTokens] -= 1;
format(string, sizeof(string), "VIP: You have traded a token for a sword, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
return 1;
}
}
GivePlayerValidWeapon(playerid, 8, 60000);
}
}
}