24.06.2012, 19:44
Quote:
#include <a_samp> #include <streamer> new hanger1; new hanger2; public OnFilterScriptInit() { hanger1 = CreateObject(16775, 286.50, 1950.23, 19.09, 0.00, 0.00, 90.00); hanger2 = CreateObject(16775, 286.50, 1963.25, 18.96, 0.00, 0.00, 90.00); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/gateopen1", true)) { MoveObject(hanger1,286.52, 1950.23, 12.46, 0.00, 0.00, 90.00); MoveObject(hanger2,286.50, 1963.25, 12.65, 0.00, 0.00, 90.00); return 1; } if(!strcmp(cmdtext, "/test1", true)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 290.71, 1954.90, 17.02); return 1; } if(!strcmp(cmdtext, "/gateclose1", true)) { MoveObject(hanger1,286.50, 1950.23, 19.09, 0.00, 0.00, 90.00); MoveObject(hanger2,286.50, 1963.25, 18.96, 0.00, 0.00, 90.00); return 1; } return 0; } |