24.02.2013, 17:29
Hello,I am new in scripting but I would really like to learn at least to do a movable gate,I would appreciate a bit of help.This is what I've done and I think its messed up.
Can someone give me all necessary to make a movable gate and all what I need?
I used ID 966 and ID 968 its the gate from LSPD garage enterance.
Код:
#include <a_samp> new Gate; public OnGameModeInit() { Gate = CreateObject(968,2467.5000000,-1663.1999512,13.1000004,0.0000000,270.0000000,271.9999695); } public OnPlayerCommandText(playerid, cmdtext[]) } if(strcmp(cmd, "/opengate", true) == 0) { MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004,0.0000000, 1); SendClientMessage(playerid, COLOR_YELLOW, "The gate is open."); return 1; } if(strcmp(cmd, "/closegate", true) == 0) { MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004, 1); SendClientMessage(playerid, COLOR_YELLOW, "The gate is closed.");
I used ID 966 and ID 968 its the gate from LSPD garage enterance.