SA-MP Forums Archive
help? ;o - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help? ;o (/showthread.php?tid=168821)



help? ;o - AndriusZ* - 17.08.2010

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)
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);
}
}
}

and
Quote:

new objectcreated;
new SavePlayerPos[SLOTS][SavePlayerPosEnum];
new distance1[MAX_PLAYERS];
new UpdateSeconds = 1;
new maxobject = 50;




Re: help? ;o - Retardedwolf - 17.08.2010

Post in the thread where you got the speed camera system from.


Re: help? ;o - AndriusZ* - 17.08.2010

no ot please. ( thread not active..(Antironix)


Re: help? ;o - Mike Garber - 17.08.2010

Quote:
Originally Posted by AndriusZ*
Посмотреть сообщение
no ot please. ( thread not active..(Antironix)
It's not Offtopic, It is more then OnTopic.
If that thread is not active, make It active by posting there.


Re: help? ;o - AndriusZ* - 17.08.2010

up. ; xx


Re: help? ;o - 0ne - 17.08.2010

Andrius, write me to PM i will help you just write me what you've changed.


LT: Parašyk viską ką pakeitei į PM ir kodą.


Re: help? ;o - AndriusZ* - 17.08.2010

parašiau