Multipe Errors Help!
#1

Hello,

I found a VIP system and i need your help.Seriously i am getting fuckin angry,there are no errors but:
  1. The pickups are not working (they are not teleporting the players)
  2. "VIP Lockers" are not working
Here is it:

Код:
#include <a_samp>
#include <dini>
#include <CheckpointManager>
#include <Colours>

#pragma tabsize 0
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1


// ******************************* [ Pickups ] *********************************
// |--------------------------------------------------------------------------|*
                                                                           // |*
new VIPHEALTH;                                                             // |*
new VIPARMOUR;                                                             // |*
                                				           // |*
// |--------------------------------------------------------------------------|*
// *****************************************************************************

// ************************** [ V.I.P Vehicles ] *******************************
// |--------------------------------------------------------------------------|*
                                                                           // |*
enum TeamCars                                                              // |*
{                                                                          // |*
VIPVEHICLES,                                                               // |*
VIPVEHICLES1,                                                              // |*
VIPVEHICLES2,                                                              // |*
VIPVEHICLES3,                                                              // |*
VIPVEHICLES4,                                                              // |*
VIPVEHICLES5,                                                              // |*
VIPVEHICLES6,                                                              // |*
VIPVEHICLES7,                                                              // |*
VIPVEHICLES8,                                                              // |*
VIPVEHICLES9,                                                              // |*
VIPVEHICLES10,                                                             // |*
VIPVEHICLES11,                                                             // |*
VIPVEHICLES12,                                                             // |*
VIPVEHICLES13,                                                             // |*
VIPVEHICLES14,                                                             // |*
VIPVEHICLES15,                                                             // |*
VIPVEHICLES16,                                                             // |*
VIPVEHICLES17                                                              // |*
}                                                                          // |*
                                                                           // |*
new Cars[TeamCars];                                                        // |*
                                			                   // |*
// |--------------------------------------------------------------------------|*
// *****************************************************************************

// ************************** [ Checkpoint Defines ] ***************************
// |--------------------------------------------------------------------------|*
                                                                           // |*
#define VIPCHECKPOINT1 1                                                   // |*
#define VIPCHECKPOINT2 2		  			       	   // |*
#define VIPGARAGECHECKPOINT 3
#define VIPGARAGEENTRANCE 2                        // |*
                                					   // |*
// |--------------------------------------------------------------------------|*
// *****************************************************************************

#define VIPLOCKERS 500


new VIPLogged[MAX_PLAYERS]=0;
new VIPstring[256];


public OnFilterScriptInit()
{

// ******************************* [ Pick ups] *********************************
// |--------------------------------------------------------------------------|*
    						                 	  // |*
VIPHEALTH = CreatePickup (1240, 1, 1723.9517, -1649.9186, 20.2288, 0);     // |*
VIPARMOUR = CreatePickup (1242, 1, 1719.5629, -1650.0532, 20.2289, 0);     // |*
						    	           // |*
// |--------------------------------------------------------------------------|*
// *****************************************************************************

// ***************************** [ Checkpoints ] *******************************
// |--------------------------------------------------------------------------|*
    						                 	  // |*
CreateCheckpoint(GLOBAL_OWNER_ID, VIPCHECKPOINT1,     		           // |*
1798.0918,-1578.4080,14.0887);    		                             // |*
		  			       	  	           // |*
CreateCheckpoint(GLOBAL_OWNER_ID, VIPCHECKPOINT2,		           // |*
1727.0332,-1637.8385,20.2229);		  			   // |*
									   // |*
CreateCheckpoint(GLOBAL_OWNER_ID, VIPGARAGECHECKPOINT,                     // |*
1721.9431,-1661.2313,20.2304);   				           // |*

CreateCheckpoint(GLOBAL_OWNER_ID, VIPGARAGEENTRANCE,                     // |*
1701.3475,-1667.8965,20.2188);   				           // |*
		  			       			           // |*
SetCheckpointInterior(VIPCHECKPOINT2,18);		  	           // |*
SetCheckpointInterior(VIPGARAGECHECKPOINT,18);
SetCheckpointInterior(VIPGARAGEENTRANCE,18);  		           // |*
		  						           // |*
		  					 	           // |*
StartCheckpointSeeking();		  			           // |*
									   // |*
// |--------------------------------------------------------------------------|*
// *****************************************************************************

// **************************** [ 3D Text Labels ] *****************************
// |--------------------------------------------------------------------------|*
    						                                               // |*
Create3DTextLabel("VIP Lounge", 					                       // |*
COLOR_LIGHTBLUE, 1798.0918,-1578.4080,14.0887, 100,0,1); 		           // |*
 						      			                                   // |*
Create3DTextLabel("VIP Lounge", 				                           // |*
COLOR_LIGHTBLUE, 1721.9431, -1661.2313, 20.2304, 100,0,1);

Create3DTextLabel("VIP Garage)", 				                           // |*
COLOR_LIGHTBLUE, 1701.3475, -1667.8965, 20.2188, 100,0,1);   	           // |*
 						      		                                       // |*
Create3DTextLabel("Exit", 					                               // |*
COLOR_LIGHTBLUE, 1727.0332, -1637.8385, 20.2229, 100,0,1); 	               // |*
                                                                           // |*
// |--------------------------------------------------------------------------|*
// *****************************************************************************

// ************************** [ V.I.P Vehicles ] *******************************
// |--------------------------------------------------------------------------|*
                                                                           // |*
Cars[VIPVEHICLES] = CreateVehicle(415,                                     // |*
-1687.4291,1020.2954,17.3572,90.5694,-1,-1,-1);                            // |*
                                                                           // |*
Cars[VIPVEHICLES1] = CreateVehicle(415,                                    // |*
-1687.3451,995.5764,17.3574,89.4433,-1,-1,-1);                             // |*
                                                                           // |*
Cars[VIPVEHICLES2] = CreateVehicle(415,                          	   // |*
-1720.5601,999.7566,17.3575,89.9307,-1,-1,-1);                             // |*
                                                                           // |*
Cars[VIPVEHICLES3] = CreateVehicle(415,                         	   // |*
-1736.2394,1011.8725,17.3573,268.9875,-1,-1,-1);                           // |*
                                                                           // |*
Cars[VIPVEHICLES4] = CreateVehicle(415,                           	   // |*
-1736.4794,1049.1646,17.3570,270.3551,-1,-1,-1);                           // |*
                                                                           // |*
Cars[VIPVEHICLES5] = CreateVehicle(587,                          	   // |*
-1704.9294,1058.4615,17.3126,179.9306,-1,-1,-1);                           // |*
                                                                           // |*
Cars[VIPVEHICLES6] = CreateVehicle(587,                          	   // |*
-1693.3130,977.8688,17.3132,0.9185,-1,-1,-1);                              // |*
                                                                           // |*
Cars[VIPVEHICLES7] = CreateVehicle(587,                           	   // |*
-1720.7479,1007.9931,17.3125,90.6050,-1,-1,-1);                            // |*
                                                                           // |*
Cars[VIPVEHICLES8] = CreateVehicle(451,                        		   // |*
-1721.2965,1024.4523,17.2918,89.3517,-1,-1,-1);                            // |*
                                                                           // |*
Cars[VIPVEHICLES9] = CreateVehicle(451,                        	  	   // |*
-1736.3378,1057.1055,17.2916,270.4988,-1,-1,-1);                           // |*
                                                                           // |*
Cars[VIPVEHICLES10] = CreateVehicle(451,                       		   // |*
-1688.1578,1049.1813,17.2914,89.7993,-1,-1,-1);                            // |*
                                                                           // |*
Cars[VIPVEHICLES11] = CreateVehicle(451,                       		   // |*
-1703.3026,1007.8652,17.2933,270.2077,-1,-1,-1);                           // |*
                                                                           // |*
Cars[VIPVEHICLES12] = CreateVehicle(477,                           	   // |*
-1687.7467,1036.7361,17.3403,88.6032,-1,-1,-1);                            // |*
                                                                           // |*
Cars[VIPVEHICLES13] = CreateVehicle(565,                           	   // |*
-1702.7471,1028.4735,17.2098,269.7582,-1,-1,-1);                           // |*
                                                                           // |*
Cars[VIPVEHICLES14] = CreateVehicle(411,                           	   // |*
-1736.1897,1036.5925,17.3130,270.6841,-1,-1,-1);                           // |*
                                                                           // |*
Cars[VIPVEHICLES15] = CreateVehicle(411,                           	   // |*
-1720.9688,1011.9447,17.3130,88.8832,-1,-1,-1);                            // |*
                                                                           // |*
Cars[VIPVEHICLES16] = CreateVehicle(521,                          	   // |*
-1736.5042,1020.2866,17.1566,268.1967,-1,-1,-1);                           // |*
                                                                           // |*
Cars[VIPVEHICLES17] = CreateVehicle(521,                           	   // |*
-1687.6051,1008.0736,17.1579,86.0123,-1,-1,-1);                            // |*
 						  			   // |*
// |--------------------------------------------------------------------------|*
// *****************************************************************************

return 1;
}

public OnPlayerConnect(playerid)
{

    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
	format(VIPstring,256,"/VIP/%s.txt", name, sizeof(name));

	if(dini_Exists(VIPstring))
		{

		if(dini_Int(VIPstring,"vip") == 1)
			{
				VIPLogged[playerid]=1;
			}
	
		if(dini_Int(VIPstring,"vip") == 2)
			{
				VIPLogged[playerid]=2;
			}
		if(dini_Int(VIPstring,"vip") == 3)
			{
				VIPLogged[playerid]=3;
			}
		if(dini_Int(VIPstring,"vip") == 4)
			{
				VIPLogged[playerid]=4;
			}

		}
		else
		{
			dini_Create(VIPstring);
			dini_Set(VIPstring,"vip","0");
		}

	return true;
}

public OnPlayerDisconnect(playerid)
{
	VIPLogged[playerid]=0;
	return true;
}

public OnPlayerCommandText(playerid,cmdtext[])
{
    dcmd(viplevel,8,cmdtext);
	dcmd(vipgarage,9,cmdtext);
	dcmd(setvip,6,cmdtext);
	return 0;
}


dcmd_setvip(playerid,params[])
{
    if(!strlen(params[0]) || !strlen(params[1]) ||
	!strlen(params[2])) return SendClientMessage(playerid,COLOR_RED,
	"Usage: /setvip [ID] [0-4] (0 removes the vip level");
	
    if(IsPlayerAdmin(playerid))
		{
			new name[MAX_PLAYER_NAME];
			VIPLogged[params[0]]=params[1];
    		GetPlayerName(playerid, name, sizeof(name));
    		dini_Create(VIPstring);
    		dini_Set(VIPstring, "vip",params[1]);
			SendClientMessage(params[0],COLOR_GREEN,VIPstring);
			if(dini_Int(VIPstring,"vip") == 1)
			{
			VIPLogged[playerid]=1;
			SendClientMessage(playerid,COLOR_ORANGE,
			"SYSTEM: Your VIP level has been changed by an admin!");
			
			SendClientMessage(playerid,COLOR_ORANGE,
			"Congratulations! You are now a Bronze VIP! ");
			}
			
			else if(dini_Int(VIPstring,"vip") == 2)
			{
			VIPLogged[playerid]=1;
			SendClientMessage(playerid,COLOR_ORANGE,
			"SYSTEM: Your VIP level has been changed by an admin!");
			
			SendClientMessage(playerid,COLOR_ORANGE,
			"Congratulations! You are now a Silver VIP!");
			}
			
			else if(dini_Int(VIPstring,"vip") == 3)
			{
			VIPLogged[playerid]=1;
			SendClientMessage(playerid,COLOR_ORANGE,
			"SYSTEM: Your VIP level has been changed by an admin!");

			SendClientMessage(playerid,COLOR_ORANGE,
			"Congratulations! You are now a Gold VIP! ");
			}
			
			else if(dini_Int(VIPstring,"vip") == 4)
			{
			VIPLogged[playerid]=1;
			SendClientMessage(playerid,COLOR_ORANGE,
			"SYSTEM: Your VIP level has been changed by an admin!");

			SendClientMessage(playerid,COLOR_ORANGE,
			"Congratulations! You are now a Plantinum VIP! ");
			}

   		    return 1;
		}
	else SendClientMessage(playerid,COLOR_RED,
		 "SYSTEM: You are not an admin.");
	return 1;
}

dcmd_viplevel(playerid,params[])
{
		#pragma unused params
		if(VIPLogged[playerid] == 1)
		{
			SendClientMessage(playerid, COLOR_ORANGE,
			"You are a Bronze VIP! ");
			return 1;
		}
		else if(VIPLogged[playerid] == 2)
		{
			SendClientMessage(playerid, COLOR_ORANGE,
			"You are a Silver VIP! ");
			return 1;
		}
        else if(VIPLogged[playerid] == 3)
		{
			SendClientMessage(playerid, COLOR_ORANGE,
			"You are a Gold VIP! ");
			return 1;
		}
		else if(VIPLogged[playerid] == 4)
		{
			SendClientMessage(playerid, COLOR_ORANGE,
			"You are a Plantinum VIP! ");
			return 1;
		}
		
		else SendClientMessage(playerid,COLOR_RED,
			 " You are not on the VIP List.");
		return 1;
}

dcmd_vipgarage(playerid,params[])
{
       #pragma unused params
		if(VIPLogged[playerid] == 1)
		SetPlayerPos(playerid, - -1707.4006,1018.1691,17.5859);
  		return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{

   VerifyCheckpoint(playerid); //Asks the CpMngr to check this cp
   return 1;
   
}

public OnPlayerPickUpPickup(playerid, pickupid)
{

	if(pickupid == VIPHEALTH)
		{
			SetPlayerHealth(playerid, 100);
		}

	if(pickupid == VIPARMOUR)
		{
			SetPlayerArmour(playerid, 100);
		}

}

public OnCheckpointEnter(playerid, checkpointid)
{
	switch(checkpointid)
	{
		case VIPCHECKPOINT1:
		{

			if(VIPLogged[playerid] == 1 || VIPLogged[playerid] == 2)
   			{
				SetPlayerPos(playerid, 1727.0332, -1637.8385, 20.2229);
				SetPlayerInterior(playerid,18);
				SetPlayerFacingAngle(playerid, 180.4679);
				SetCameraBehindPlayer(playerid);
   			}

			else if(VIPLogged[playerid] == 0)
			{
				SendClientMessage(playerid, COLOR_RED,
				"Sorry but you are not on the V.I.P List");
			}
		}

		case VIPCHECKPOINT2:
		{
			SetPlayerPos(playerid, 1798.0918,-1578.4080,14.0887);
			SetPlayerInterior(playerid,0);
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle(playerid, 180.8051);
		}
		
		case VIPGARAGECHECKPOINT:
		{
            if(VIPLogged[playerid] == 1)
            {
                ShowPlayerDialog(playerid,VIPLOCKERS,DIALOG_STYLE_LIST,
                "VIP Lounge",
                "VIP Garage\nVIP Weapons\nVIP Skins\nVIP Fighting Style",
                "Select", "Exit");
			}
			
			else if(VIPLogged[playerid] == 0)
			{
			    SendClientMessage(playerid, COLOR_ORANGE,
			    "Sorry but you need to be at least Bronze VIP to use this");
			}
		}
	}

	return 1;

}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == 2)
	{
	    new CarCheck = GetPlayerVehicleID(playerid);
		if(CarCheck == Cars[VIPVEHICLES] ||
		    CarCheck == Cars[VIPVEHICLES1] ||
	        CarCheck == Cars[VIPVEHICLES2] ||
	        CarCheck == Cars[VIPVEHICLES3] ||
	        CarCheck == Cars[VIPVEHICLES4] ||
	        CarCheck == Cars[VIPVEHICLES5] ||
	        CarCheck == Cars[VIPVEHICLES6] ||
	        CarCheck == Cars[VIPVEHICLES7] ||
	        CarCheck == Cars[VIPVEHICLES8] ||
	        CarCheck == Cars[VIPVEHICLES9] ||
	        CarCheck == Cars[VIPVEHICLES10] ||
	        CarCheck == Cars[VIPVEHICLES11] ||
	        CarCheck == Cars[VIPVEHICLES12] ||
	        CarCheck == Cars[VIPVEHICLES13] ||
	        CarCheck == Cars[VIPVEHICLES14] ||
	        CarCheck == Cars[VIPVEHICLES15] ||
	        CarCheck == Cars[VIPVEHICLES16] ||
	        CarCheck == Cars[VIPVEHICLES17])
	        
	        {
			if(dini_Int(VIPstring,"vip") == 0)
				{
					VIPLogged[playerid]=0;
   					RemovePlayerFromVehicle(playerid);
   					
        			SendClientMessage(playerid, COLOR_RED,
				    "This Vehicle is for Silver VIP only");
        		}
		    }

	}

	if(newstate == 2)
	{
	    new CarCheck = GetPlayerVehicleID(playerid);
		if(CarCheck == Cars[VIPVEHICLES] ||
		    CarCheck == Cars[VIPVEHICLES1] ||
	        CarCheck == Cars[VIPVEHICLES2] ||
	        CarCheck == Cars[VIPVEHICLES3] ||
	        CarCheck == Cars[VIPVEHICLES4] ||
  	        CarCheck == Cars[VIPVEHICLES5] ||
	        CarCheck == Cars[VIPVEHICLES6] ||
	        CarCheck == Cars[VIPVEHICLES7] ||
	        CarCheck == Cars[VIPVEHICLES8] ||
	        CarCheck == Cars[VIPVEHICLES9] ||
	        CarCheck == Cars[VIPVEHICLES10] ||
	        CarCheck == Cars[VIPVEHICLES11] ||
	        CarCheck == Cars[VIPVEHICLES12] ||
	        CarCheck == Cars[VIPVEHICLES13] ||
	        CarCheck == Cars[VIPVEHICLES14] ||
	        CarCheck == Cars[VIPVEHICLES15] ||
	        CarCheck == Cars[VIPVEHICLES16] ||
	        CarCheck == Cars[VIPVEHICLES17])
	        
	        {
		    if(dini_Int(VIPstring,"vip") == 1)
				{
					VIPLogged[playerid]=1;
   					RemovePlayerFromVehicle(playerid);
   					
        			SendClientMessage(playerid, COLOR_RED,
					"This Vehicle is for Silver VIP only");
        		}
		   }
  		return 1;
	}

	return 1;
}
		
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

	if(dialogid == VIPLOCKERS)
	{
	    if(response)
	    {
	        if(listitem == 0) // Garage
	        {
 		    	if(VIPLogged[playerid] == 1)
				{
		    		SetPlayerPos(playerid, -1706.2871, 1018.2017, 17.5859);
		    		SetPlayerInterior(playerid,0);
		    		SetCameraBehindPlayer(playerid);
		    		SetPlayerFacingAngle(playerid, 272.1310);
				}

				else if(VIPLogged[playerid] == 1)
				{
					SendClientMessage(playerid, COLOR_RED,
		    		"Sorry but you need to be at least Bronze VIP to enter here");
				}
	        }
	        
	        if(listitem == 1) // Weapons
	        {
				ShowPlayerDialog(playerid, VIPLOCKERS+2, DIALOG_STYLE_LIST,
				"VIP Lounge",
				"AK-47\nChainsaw\nCombat Shotgun\nDesert Eagle\nKatana\nMicro SMG\nM4\nMP5\nTec9\nSawn-off Shotgun\nSniper Rifle\nBack",
				"Select", "Exit");
	        }   
	        
	        if(listitem == 2) // Skins
	        {
				ShowPlayerDialog(playerid, VIPLOCKERS+3, DIALOG_STYLE_LIST,
				"VIP Lounge",
				"Drug Dealer Skin\nElvis Skin\nMafia Skin\nPimp\nFemale Skin 1\nFemale Skin 2\nBack",
				"Select", "Exit");
	        }
	        
	        if(listitem == 3) // Fighting Styles
	        {
				ShowPlayerDialog(playerid, VIPLOCKERS+4, DIALOG_STYLE_LIST,
				"VIP Lounge",
				"Normal Fighting Style\nBoxing Fighting Style\nKung Fu Fighting Style\n Knee-Head Fighting Style\nGrab-Kick Fighting Style\nElbow Fighting Style\nBack",
				"Select", "Exit");
	        }
		}
	}
	        
 	if(dialogid == VIPLOCKERS+2) // Weapons
  	{
   		if(response)
		{
   			if(listitem == 0) // AK-47
	    	{
	    		new ammo = GetPlayerAmmo(playerid);
	    		if(ammo >600)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
					GivePlayerWeapon(playerid, 30, 250);
			}
			if(listitem == 1) // Chainsaw
   			{
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >1)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
   					GivePlayerWeapon(playerid,9 ,1);
  			}
	    	if(listitem == 2) // Combat Shotgun
		    {
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >400)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
			    	GivePlayerWeapon(playerid,27 ,100);
		    }
		    if(listitem == 3) // Desert Eagle
		    {
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >400)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
			    	GivePlayerWeapon(playerid,24 ,100);
		    }
		    if(listitem == 4) // Katana
		    {
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >1)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
			    	GivePlayerWeapon(playerid,8 ,1);
		    }
		    if(listitem == 5) // Micro SMG
		    {
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >600)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
			    	GivePlayerWeapon(playerid,28 ,250);
		    }
		    if(listitem == 6) // M4
		    {
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >600)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
			    	GivePlayerWeapon(playerid,31 ,250);
		    }
		    if(listitem == 7) // MP5
		    {
			   	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >600)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
			    	GivePlayerWeapon(playerid,29 ,250);
		    }
		    if(listitem == 8) // Tec 9
		    {
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >600)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
			    	GivePlayerWeapon(playerid,32 ,250);
		    }
		    if(listitem == 9) // Sawn-off Shotgun
		    {
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >400)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
				   	GivePlayerWeapon(playerid,26 ,100);
	    	}
		    if(listitem == 10) // Sniper Rifle
		    {
		    	new ammo = GetPlayerAmmo(playerid);
		    	if(ammo >250)
					{
						SendClientMessage(playerid, COLOR_ORANGE,
						"Sorry you have all the free ammo we can give you for now");
					}
					else
			    	GivePlayerWeapon(playerid,34 ,50);
		    }
	  		if(listitem == 11) // Back
		    {
        		ShowPlayerDialog(playerid,VIPLOCKERS,DIALOG_STYLE_LIST,
           		"VIP Lounge",
          		"VIP Garage\nVIP Weapons\nVIP Skins\nFighting Styles",
           		"Select", "Exit");
		    }
		}
	}
			
    if(dialogid == VIPLOCKERS+3) // Skins
	{
		if(response)
		    if(VIPLogged[playerid] == 2)
		     {
  			  if(listitem == 0) // Drug Dealer Skin
	    	   {
   	    		  if(GetPlayerSkin(playerid) == 28)
		        	{
						SendClientMessage(playerid, COLOR_ORANGE,
						"You are already using this skin");
					}
						
					else
					SetPlayerSkin(playerid, 28);

		    }

        if(listitem == 1) // Elvis Skin
		    {
		        if(GetPlayerSkin(playerid) == 83)
			        {
						SendClientMessage(playerid, COLOR_ORANGE,
						"You are already using this skin");
					}

					else
        			SetPlayerSkin(playerid, 83);

		    }
				    
	  	    if(listitem == 2) // Mafia Skin
		    {
		        if(GetPlayerSkin(playerid) == 124)
		        	{
						SendClientMessage(playerid, COLOR_ORANGE,
						"You are already using this skin");
					}

					else
       				SetPlayerSkin(playerid, 124);

		    }
				    
			if(listitem == 3) // Pimp Skin
		    {
		        if(GetPlayerSkin(playerid) == 249)
			        {
						SendClientMessage(playerid, COLOR_ORANGE,
						"You are already using this skin");
					}

					else
       				SetPlayerSkin(playerid, 249);

		    }
				    
		    if(listitem == 4) // Female Skin 1
		    {
				if(GetPlayerSkin(playerid) == 298)
			        {
						SendClientMessage(playerid, COLOR_ORANGE,
						"You are already using this skin");
					}

					else
        			SetPlayerSkin(playerid, 298);

		    }
				    
		    if(listitem == 5) // Female Skin 2
		    {
		        if(GetPlayerSkin(playerid) == 90)
			        {
						SendClientMessage(playerid, COLOR_ORANGE,
						"You are already using this skin");
					}

					else
        			SetPlayerSkin(playerid, 90);

		    }
		    else
		    SendClientMessage(playerid, COLOR_ORANGE,
						"You must be at least Silver VIP to access this!!");
				    
		    if(listitem == 6) // Back
		    {
      			ShowPlayerDialog(playerid,VIPLOCKERS,DIALOG_STYLE_LIST,
           		"VIP Lounge",
           		"VIP Lounge Garage\nVIP Lounge Weapons\nVIP Lounge Skins\nVIP Lounge Fighting Style",
           		"Select", "Exit");
		   }
		}
	}

	if(dialogid == VIPLOCKERS+4) // Fighting Styles
 	{
  		if(response)
		{
		    if(listitem == 0) // Normal Fighting Style
		    {
		    	if(GetPlayerFightingStyle(playerid) == FIGHT_STYLE_NORMAL)
		    		{
				   	    SendClientMessage(playerid, COLOR_ORANGE,
				   	    "You are already using this fighting style");
					}
						
					else
			    	SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
		    }
				    
		    if(listitem == 1) // Boxing Fighting Style
		    {
		    	if(GetPlayerFightingStyle(playerid) == FIGHT_STYLE_BOXING)
			    	{
			    	    SendClientMessage(playerid, COLOR_ORANGE,
			    	    "You are already using this fighting style");
					}
						
					else
			    	SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
		    }
				    
		    if(listitem == 2) // Kung Fu Fighting Style
		    {
		    	if(GetPlayerFightingStyle(playerid) == FIGHT_STYLE_KUNGFU)
			    	{
			    	    SendClientMessage(playerid, COLOR_ORANGE,
			    	    "You are already using this fighting style");
					}

					else
				   	SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
			}
				    
   			if(listitem == 3) // Knee-Head Fighting Style
		    {
		    	if(GetPlayerFightingStyle(playerid) == FIGHT_STYLE_KNEEHEAD)
				   	{
				   	    SendClientMessage(playerid, COLOR_ORANGE,
				   	    "You are already using this fighting style");
					}
						
					else
				   	SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
	    	}
				    
		    if(listitem == 4) // Grab-Kick Fighting Style
		    {
		    	if(GetPlayerFightingStyle(playerid) == FIGHT_STYLE_GRABKICK)
			    	{
			    	    SendClientMessage(playerid, COLOR_ORANGE,
			    	    "You are already using this fighting style");
					}
						
					else
			    	SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
		    }
				    
		    if(listitem == 5) // Elbow Fighting Style
		    {
		    	if(GetPlayerFightingStyle(playerid) == FIGHT_STYLE_ELBOW)
			    	{
			    	    SendClientMessage(playerid, COLOR_ORANGE,
			    	    "You are already using this fighting style");
					}

					else
			    	SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
		    }
		    if(listitem == 6) // Back
		    {
    			ShowPlayerDialog(playerid,VIPLOCKERS,DIALOG_STYLE_LIST,
     			"VIP Lounge",
     			"VIP Lounge Garage\nVIP Lounge Weapons\nVIP Lounge Skins\nVIP Lounge Fighting Style",
      			"Select", "Exit");
		    }
		}
	}

	return 1;
}
Reply


Messages In This Thread
Multipe Errors Help! - by geohareas - 27.12.2012, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)