30.05.2012, 20:12
Ok, I'm trying to do job with random coordinates, but i need help, i wrote my coordinates on top of script(like this)
And i made command for working
But i don't know how to connect this, and to make it when player enter in checkpoint, second from random will show automaticly, and it won't stop untill player type /stop(work)
Please help me!
Code:
new Float:ElektricarKord[][] = { {-2200.2446,2549.4692,4.6292}, {-2204.2434,2537.7979,4.6292}, {-2208.2148,2539.9299,4.6292}, {-2218.0381,2531.1643,4.6292}, {-2222.1033,2519.7651,4.6324}, {-2227.0461,2521.9084,4.6324}, {-2236.0940,2513.3711,4.6292}, {-2239.6729,2501.8101,4.6292}, {-2244.9705,2503.5513,4.6292}, {-2255.7510,2493.6121,4.6292}, {-2263.9543,2485.8496,4.8022}, {-2283.5908,2471.6335,4.6324}, {-2301.7195,2447.6733,4.6292}, {-2292.1885,2478.2090,4.6292}, {-2300.1731,2485.9795,4.6292}, {-2307.9795,2493.6003,4.6172}, {-2273.3616,2529.7161,4.6172}, {-2338.6265,2480.2429,4.9844}, {-2340.6514,2484.1987,4.6172}, {-2350.7751,2504.2207,4.6172}, {-2344.3718,2523.2251,4.6172}, {-2356.4614,2515.2236,4.6172}, {-2362.1565,2507.3357,4.6172}, {-2365.4888,2424.5449,7.5891}, {-2354.8164,2415.8237,6.6002}, {-2305.4602,2381.0708,5.2649}, {-2301.4688,2377.7520,5.1449}, {-2256.9221,2346.0735,4.3776}, {-2245.0537,2298.7141,4.5412}, {-2338.0437,2387.7842,5.4222}, {-2375.4202,2351.8562,4.4853}, {-2387.7344,2350.5466,4.5457}, {-2421.3442,2332.4736,4.4831}, {-2458.7234,2324.5366,4.5485}, {-2471.9912,2323.8916,4.4904}, {-2474.3479,2381.6882,11.7831} };
Code:
CMD:clean(playerid,params[]) { new vehicleid = GetPlayerVehicleID(playerid); if(PlayerInfo[playerid][pPosao] != 2) return SendClientMessage(playerid,-1,"You are not cleaner!"); if(!CistacUlica(vehicleid)) return SendClientMessage(playerid,-1,"You are not in cleaning vehicle"); if(VecCisti[playerid] == 1) return SendClientMessage(playerid,-1,"You are already working this job"); SetPlayerCheckPoint(playerid,x,y,z); SendClientMessage(playerid,-1,"You started with cleaning, type /stop if you want to quit working"); VecCisti[playerid] = 1; return true; }
Please help me!