skripta koju koristim: Empire-Gaming
deo skript: Sredina
Opis problema: Ukucam /salon sve oce ali nece da mi salta vozila
Slika: //
Nesto da dodate: Evo vam komanda ako znate sta da ispravim da bi mi moglo saltati vozila
COMMAND:salon(playerid,params[])
{
new string[50];
if(KupnjaMotora[playerid] == false)
{
if(GetPlayerState(playerid) != 2)
{
if (IsPlayerInRangeOfPoint(playerid, 5.0,1050.8373,-887.5295,42.9864) )
{
TextDrawShowForPlayer(playerid,Crno);
TextDrawShowForPlayer(playerid,lbb);
TextDrawHideForPlayer(playerid,Text:Textovi[playerid]);
TextDrawHideForPlayer(playerid,Text:Poruke);
SetPlayerPos(playerid,1041.6462,-898.7527,43.8298);
SetPlayerFacingAngle(playerid,249.4523);
TogglePlayerControllable(playerid, 0);
KupnjaMotora[playerid] = true;
Mtimer[playerid] = SetTimerEx("MotoIzlozba",500,1,"i",playerid);
SCM(playerid, COLOR_LIGHTBLUE, " Koristite tipke lijevo i desno za pregledavanje vozila..");
SCM(playerid, COLOR_LIGHTBLUE, " Za kupnju stisnite Enter ili (F)");
SCM(playerid, COLOR_LIGHTBLUE, " Za odustat stisnite [SPACE] ili [SHIFT]");
SMotoText(playerid);
new string2[100];
format(string2,sizeof(string2),"Vozilo: ~g~%s~n~~w~cena: ~g~%d$~n~~w~Zakjucan: ~g~NE",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400],CjeneMotora[MotoModel]);
TextDrawSetString(COSi2[playerid],string2);
TextDrawShowForPlayer(playerid,COSi[playerid]);
TextDrawShowForPlayer(playerid,COSi2[playerid]);
TextDrawShowForPlayer(playerid,COSi3[playerid]);
TextDrawShowForPlayer(playerid,COSi4[playerid]);
format(string,sizeof(string),"~h~~h~~b~~n~~n~~h~~h~~y~< ~g~DALJE ~h~~h~~y~>");
TextDrawSetString(MotoTextDraw[playerid],string);
SetPlayerCameraPos(playerid, 1056.2001,-881.7712,54.9109);
SetPlayerCameraLookAt(playerid,1046.5553,-900.1923,44.7235);
}
else
{
SCM(playerid, COLOR_LIGHTRED, " Niste na mestu za kupnju vozila!");
return 1;
}
}
else
{
SCM(playerid, COLOR_LIGHTRED, " Nemozete kupovati ako ste u vozilu.");
return 1;
}
}
else
{
SCM(playerid, COLOR_LIGHTRED, " Vec pregledavate salon!");
return 1;
}
return 1;
}