13.11.2011, 11:47
here's the code
Код:
#define FILTERSCRIPT #include <a_samp> new imafia; public OnFilterScriptInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); imafia = CreateObject(980,1245.68627930,-768.25524902,93.69370270,0.00000000,0.00000000,0.00000000); //object(airportgate) (1) return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/im1", cmdtext, true, 10) == 0) { MoveObject(imafia,1245.27880859,-768.20977783,93.69495392, 2.00); SetTimer("imafia1", 4000, 0);//gate will be closed for 7 seconds SendClientMessage(playerid,0xFF7F50AA,"xaxaax!.."); return 1;} return 0; }