10.01.2012, 21:39
Well what I am doing here wrong..
I made gates that are working but only if you are 20 feet away from them... I wanted to make it if you are 20feet+ away that you cannot open it. Gates are working but only if you are 20+ feet away...
Код:
if (strcmp("/Russiangateopen", cmdtext, true) == 0 || (strcmp("/Rgo", cmdtext, true) == 0)) { if(IsPlayerInRangeOfPoint(playerid, 20.0, -1820.6879, 1.8925, 15.1172)) { SendClientMessage(playerid, COLOR_RED, "<!>You are not in range of that gate!"); return 1; } SendClientMessage(playerid, COLOR_YELLOW, "<!>You have just opened the gate!"); MoveObject(gateR1, -1817.5251, 1.9901, 10.4987, 1, 0.00, 0.00, 91.00); //opened return 1; }