YCMD:autosalon(playerid,params[],help)
{
#pragma unused help
if(KupnjaVozila == false)
{
if(GetPlayerState(playerid) != 2)
{
if (IsPlayerInRangeOfPoint(playerid, 10.0,1129.2640,-1454.3809,15.7969) )
{
TogglePlayerControllable(playerid, 0);
KupnjaVozila = true;
Mtimer = SetTimerEx("MotoIzlozba",500,1,"i",playerid);
SCM(playerid, COLOR_LIGHTBLUE, " Koristite tipke lijevo i desno za pregledavanje voziloa..");
SCM(playerid, COLOR_LIGHTBLUE, " Za kupnju stisnite Enter ili (F)");
SCM(playerid, COLOR_LIGHTBLUE, " Za odustat stisnite ili ");
SMotoText(playerid);
format(string,sizeof(string),"~h~~h~~b~Cjena: %d~n~~n~~h~~h~~y~< ~g~dalje ~h~~h~~y~>",Modeli_vozila);
TextDrawSetString(MotoTextDraw,string);
SetPlayerCameraPos(playerid, 1124.1003,-1458.3739,18.4870);
SetPlayerCameraLookAt(playerid,1130.2097,-1454.3793,15.7969);
}
else
{
SCM(playerid, COLOR_LIGHTRED, " Niste na mjestu za kupnju vozila!");
return 1;
}
}
else
{
SCM(playerid, COLOR_LIGHTRED, " Nemozete kupovati ako ste u vozilu..nije rp xD");
return 1;
}
}
else
{
SCM(playerid, COLOR_LIGHTRED, " Vec pregledavate vozila!");
return 1;
}
return 1;
}
Pomoc hitnoo!