[Tutorial] How to make movable gate and openable for only 1 name.
#9

Why nothing happen?
pawn Код:
new gate;  
public OnGameModeInit()
{
    CreateObject(3415,-769.79998779,1091.69995117,43.29999924,0.00000000,0.00000000,0.00000000); //object(ce_loghut1) (1)
    gate = CreateObject(2395,-770.00000000,1089.69995117,40.09999847,0.00000000,0.00000000,90.00000000); //object(cj_sports_wall) (1)
    return 1;
}

CMD:Openit(playerid,params[])
{
    MoveObject(gate,-770.00000000,1089.69995117,40.09999847, 1.500000);
    SendClientMessage(playerid, COLOUR_GREEN, "You have succesfully openned the gate!");
    return 1;
}
CMD:closeit(playerid,params[])
{
    MoveObject(gate,-770.00000000,1089.69995117,30.09999847, 1.500000);
    SendClientMessage(playerid, COLOUR_GREEN, "You have succesfully closed the gate!");
    return 1;
}
I compiled without errors or warnings
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)