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

try this
pawn Код:
new gate1;

public OnGameModeInit()
{
gate1 = CreateObject(969, 2231.45703, -2212.44116, 12.53181, 0.00000, 0.00000, -45.00000);

//the skins i want the command to work for
    //Maffia
    AddPlayerClass(46, 2128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    AddPlayerClass(59, 2128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    AddPlayerClass(111, 2128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    AddPlayerClass(124, 2128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    AddPlayerClass(125, 2128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    AddPlayerClass(223, 2128.0320,-2271.5474,20.6719,235.8931,0,0,0,0,0,0);
    return 1;
}

//the gate code

//gate1
CMD:closegate(playerid, params[])
{
    if(GetPlayerSkin(playerid) == SkinIDHere) return SendClientMessage(playerid, -1"Your Message Here");
    MoveObject(gate1, 2231.45703, -2212.44116, 12.53181, 1);
    SendClientMessage(playerid, 0xEF994300, "Closeing Maffia HQ...");


    return 1;
}
CMD:opengate(playerid, params[])
{
    if(GetPlayerSkin(playerid) == SkinIDHere) return SendClientMessage(playerid, -1"Your Message Here");
    MoveObject(gate1, 2231.4570, -2212.4412, 9.3241, 1);
    SendClientMessage(playerid, 0xEF994300, "Opening Maffia HQ...");


    return 1;
}
PS: Change the SkinIDHere to the skin id that you want to put
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: 1 Guest(s)