YCMD:napravimerac(playerid,params[],help)
{
new brzince,s;
if(PlayerInfo < 6) return SCM(playerid,-1,""BELA"{FFCC00}[BV:RP]{FFFFFF} "SPLAVA"Samo Vlasnik!");
if(sscanf(params, "i", brzince)) return SendClientMessage(playerid, 0xFFFFFFFF, "KORISTI: /merac napravi [ogranicenje brzine]");
if(brzince<1||brzince>500) return SendClientMessage(playerid, -1, "{FFCC00}[BV:RP]{FFFFFF}Pogresan unos !");
for(new i=1;i<999;i++)
{
new string;
format(string,200,"merac_brzine/meraci/Merac_%d.ini",i);
if(!fexist(string))
{
s=i;
i=999;
}
}
new Float:x, Float:y, Float:z,Float:zs;
GetPlayerPos(playerid, x, y, zs);
z=zs+2;
new Float:Angle;
GetPlayerFacingAngle(playerid, Angle);
vaza_brzina = CreateObject(19329, x, y, z +0.8583, 0.0000, 0.0000, Angle, 50000.0);
SetObjectMaterialText(vaza_brzina, "VASA BRZINA km/h", 0, 50, "Arial", 17, 1, -65536, -256, 1);
brzina = CreateObject(19329, x, y, z, 0.0000, 0.0000, Angle, 50000.0);
SetObjectMaterialText(brzina, "000", 0, 50, "Small Fonts", 47, 1, -256, 52568607, 1);
uspori = CreateObject(19329, x, y, z -0.8583, 0.0000, 0.0000, Angle, 50000.0);
SetObjectMaterialText(uspori, "normalno", 0, 50, "Arial", 25, 1, -65536, -256, 1);
pozadina=CreateObject(2632, x, y, z -0.1583, 0.0000, 270.0000, Angle+90, 50000.0);//pozadina
SetObjectMaterialText(pozadina, "s", 0, 50, "Arial", 2, 0, -1, -16777216, 1);
stub=CreateObject(1251, x, y, z -4.7108, 90.0000, 0.0000, Angle, 50000.0);//stub
SetPlayerPos(playerid, x, y, zs+5);
MB = x;
MB = y;
MB = zs;
MB = Angle;
MB = 70;
SacuvajMerac(s);
return 1;
}