08.07.2011, 02:53
replace it all with this
Код:
#include <a_samp> #define COLOR_LIGHTBLUE 0x33CCFFAA forward gateClose(playerid); new gate; public OnFilterScriptInit() { print("\n--Test by me\n"); CreateObject(3749,316.01211548,-1785.01037598,9.54506397,0.00000000,0.00000000,0.00000000); //convertffs(1) gate = CreateObject(980,316.23278809,-1785.50659180,6.43586397,0.00000000,0.00000000,180.00000000); //convertffs(30) return 1; } public gateClose() { MoveObject(gate,316.23278809, -1785.50659180, 6.43586397, 3.5); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/parkout", true)==0) { if (IsPlayerInRangeOfPoint(playerid,10,338.9116,-1784.1176,5.0854)) { MoveObject(gate,339.02227783203, -1784.5198974609, 0.8551278114319, 3.5); GameTextForPlayer(playerid, "~w~Gate will close in 10 secs. Thanks for your park. Hope to see you agian!", 5000, 1); SetTimer("gateClose", 10000, 0); } return 1; } if (strcmp(cmdtext, "/parkout", true)==0) { if (IsPlayerInRangeOfPoint(playerid,10,316.23278809, -1785.50659180, 5.43586397)) { MoveObject(gate, 316.23278809, 1785.50659180, 6.8551278114319, 3.5); GameTextForPlayer(playerid, "~w~Gate will close in 10 secs. Welcome to the park for cars!", 5000, 1); SetTimer("gateClose", 10000, 0); } return 1; }