cmd not working
#1

my gates cmd are not working
at top of gamemode
pawn Код:
new enog1;
new enog2;
new endv;
object of gates
pawn Код:
enog1 = CreateObject(980,-394.7998000,1243.2002000,6.8000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    enog2 = CreateObject(16773,-467.2002000,1440.7002000,23.8000000,0.0000000,0.0000000,278.6190000); //object(door_savhangr1) (2)
    endv = CreateObject(3115,-550.2000100,1484.1000000,19.5000000,359.9840000,0.0000000,188.8060000); //object(carrier_lift1_sfse) (95)
cmds
pawn Код:
if(strcmp(cmdtext,"/enog1",true)==0)//gatesopen1
    {
        MoveObject(enog1, -394.7999900, 1243.7000000, 2.3000000, 5.00);
        return 1;
    }
    if(strcmp(cmdtext,"/encg1",true)==0)//gatesclosed1
    {
        MoveObject(enog1, -394.7998000, 1243.2002000, 6.8000000, 5.00);
        return 1;
    }
    if(strcmp(cmdtext,"/enog2",true)==0)//second front gateopen
    {
        MoveObject(enog2, -467.2000100, 1440.7000000, 35.8000000, 5.00);
        return 1;
    }
    if(strcmp(cmdtext,"/encg2",true)==0)//second front gate closed
    {
        MoveObject(enog2, -467.2002000, 1440.7002000, 23.8000000, 5.00);
        return 1;
    }
    if(strcmp(cmdtext,"/endv",true)==0)//gunroom
    {
        MoveObject(endv, -550.2000100, 1484.1000000, 0.5000000, 5.00);
        return 1;
    }
    if(strcmp(cmdtext,"/enuv",true)==0)//gunroom
    {
        MoveObject(endv, -550.2000100, 1484.1000000, 19.5000000, 5.00);
        return 1;
    }
    return 0;
}
Reply
#2

Where have you added these ?
Код:
nog1 = CreateObject(980,-394.7998000,1243.2002000,6.8000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
    enog2 = CreateObject(16773,-467.2002000,1440.7002000,23.8000000,0.0000000,0.0000000,278.6190000); //object(door_savhangr1) (2)
Reply
#3

i add this under
Quote:

public OnGameModeInit()

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)