17.08.2010, 10:27
well.. im using Antorix(or same nick :X) speed cameras system. i added ~10, edited line MAX_OBJECTS, compile and rr server. but im going 200+ near 60km/h camera, and i didnt get any message etc. help me :) ( SORRY FOR VERYYY BAD ENGLISH)
and
Quote:
public UpdateSpeed(playerid) { new Float:x,Float:y,Float:z; new Float:distance,value; for(new i=0; i<SLOTS; i++) { if(IsPlayerConnected(i)) { GetPlayerPos(i, x, y, z); distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePla yerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2)); value = floatround(distance * 3600); if(UpdateSeconds > 1) { value = floatround(value / UpdateSeconds); } distance1[i] = floatround(value/1600); SavePlayerPos[i][LastX] = x; SavePlayerPos[i][LastY] = y; SavePlayerPos[i][LastZ] = z; AddFlitsPaal(i, 1278, -1469.859863,2606.600585,55.835937, 20, 90); AddFlitsPaal(i, 1278, -1502.093750,2676.592529,55.835937, 20, 70); AddFlitsPaal(i, 1278, -1551.754760,2603.695556,55.835937, 20, 80); AddFlitsPaal(i, 1278, -1793.422241,2706.493896,57.459232, 20, 110); AddFlitsPaal(i, 1278, -2471.569091,2674.612792,63.692256, 20, 130); AddFlitsPaal(i, 1278, -2545.797119,2454.597412,18.530708, 20, 80); AddFlitsPaal(i, 1278, -2361.757568,2407.598876,7.123734, 20, 100); AddFlitsPaal(i, 1278, -222.807739,2695.493652,62.687500, 20, 80); AddFlitsPaal(i, 1278, -282.795715,2706.926025,62.687500, 20, 90); AddFlitsPaal(i, 1278, -374.699920,2668.117919,65.227790, 20, 70); AddFlitsPaal(i, 1278, -848.875732,2734.492675,45.773956, 20, 60); AddFlitsPaal(i, 1278, -1503.597656,2736.381835,65.280960, 20, 110); } } } |
Quote:
new objectcreated; new SavePlayerPos[SLOTS][SavePlayerPosEnum]; new distance1[MAX_PLAYERS]; new UpdateSeconds = 1; new maxobject = 50; |