.::Moving gate with only one skin::.
#1

Hello fellow scripts i have maked a moving gate thanks to skillzz but i want only one kind of skin to open the base doors this is the code for my maffia base. Where it says //maffia they the skin i just want the command to work for.

The gate and skin code
PHP код:
new gate1;
public 
OnGameModeInit()
{
gate1 CreateObject(9692231.45703, -2212.4411612.531810.000000.00000, -45.00000);
//the skins i want the command to work for
    //Maffia
    
AddPlayerClass(462128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    
AddPlayerClass(592128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    
AddPlayerClass(1112128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    
AddPlayerClass(1242128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    
AddPlayerClass(1252128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    
AddPlayerClass(2232128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    return 
1;
}
//the gate code
//gate1
CMD:closegate(playeridparams[])
{
    
MoveObject(gate12231.45703, -2212.4411612.531811);
    
SendClientMessage(playerid0xEF994300"Closeing Maffia HQ...");
    return 
1;
}
CMD:opengate(playeridparams[])
{
    
MoveObject(gate12231.4570, -2212.44129.32411);
    
SendClientMessage(playerid0xEF994300"Opening Maffia HQ...");
    return 
1;

please help thank you so much!!
Reply


Messages In This Thread
.::Moving gate with only one skin::. - by LavaHDProkiller - 02.03.2013, 12:01
Re: .::Moving gate with only one skin::. - by dusk - 02.03.2013, 12:13
Re: .::Moving gate with only one skin::. - by LavaHDProkiller - 02.03.2013, 12:19
Re: .::Moving gate with only one skin::. - by Patrick - 02.03.2013, 12:48
Re: .::Moving gate with only one skin::. - by LavaHDProkiller - 02.03.2013, 13:08
Re: .::Moving gate with only one skin::. - by Patrick - 02.03.2013, 13:13
Re: .::Moving gate with only one skin::. - by LavaHDProkiller - 02.03.2013, 13:20
Re: .::Moving gate with only one skin::. - by Denying - 02.03.2013, 13:47
Re: .::Moving gate with only one skin::. - by LavaHDProkiller - 02.03.2013, 13:52
Re: .::Moving gate with only one skin::. - by Denying - 02.03.2013, 13:55

Forum Jump:


Users browsing this thread: 2 Guest(s)