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;
}