01.10.2011, 23:30
Код:
COMMAND:openlspd(playerid,params[]) { if(LspdIsClosed == 1) { new string[128]; format(string,sizeof(string),"The LSPD gate has just been opened."); SendClientMessage(playerid,COLOR_WHITE,string); MoveDynamicObject(LSPDgate,1546.82165527,-1625.91467285,5.15620422,2.0); LspdIsClosed = 0; } else SendClientMessage(playerid,COLOR_WHITE,"The gate is already open."); return 1; } COMMAND:closelspd(playerid,params[]) { if(LspdIsClosed == 0) { new string[128]; format(string,sizeof(string),"The LSPD gate has just been closed."); SendClientMessage(playerid,COLOR_WHITE,string); MoveDynamicObject(LSPDgate,1550.04785156,-1625.51953125,15.15620422,2.0); LspdIsClosed = 1; } else SendClientMessage(playerid,COLOR_WHITE,"The gate is already closed."); return 1; }