Skripta : CLRP
Problem : Kaada igrac udje u neko auto da mu pokaze ko je vlasnik i to,ali ako je lock da ne moze da udje onda....
[Pomoc] Kada igrac ulazi u auto...
564
pregleda
11
postova
7. Maj 2013.
|LG|Yui_Sang wrote on May 7, 2013, 2:27 pm:
Ne nema nista kada se ulazi ne pise,skripta CLRP...
Ako nista barem da pise ko je vlasnik ako to moze pls 😄 😢
Ako nista barem da pise ko je vlasnik ako to moze pls 😄 😢
Mislio sam a nije bila zezno sam jbg...
7. Maj 2013.
pod onplayerentervehicle stavi ovako, samo moras svoje varijable
if(VozilaInfo == 1)
{
if(VozilaInfo == 0)
{
format(string, sizeof string, "Ovo vozilo je zakljucno, vlasnik: %s", VozilaInfo);
SCM(playerid, 0xB4B5B7FF, string);
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}7. Maj 2013.
Ja sam ovako dodao i nece mi... 😐
if(VehicleInfo == -1)
{
Carlist=1;
{
new string
format(string, sizeof string, "Ovo vozilo je zakljucno", VehicleInfo);
SCM(playerid, 0xB4B5B7FF, string);
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}7. Maj 2013.
if(VehicleInfo == 0)
{
if(VehicleInfo == 1)//stavi kako ti ide 1-zakljucan 0-otkljucano to moras sam neznam ja kako je kod tebe
{
//scm za poruku, jer djabe koristis foramt kad nemas %
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}7. Maj 2013.
|LG|Yui_Sang wrote on May 7, 2013, 4:19 pm:
Ili daj komandu de lockas vozilo
else if(strcmp(x_nr,"lock",true) == 0)
{
if (Carlist!=-1)
{
if (Carlist!=-1)
{
if (Carlist==0)
{
Carlist=1;
SetVehicleParamsForAll(Carlist,0,1);
SetVehicleParamsForPlayer(Carlist,playerid,0,0);
SendClientMessage(playerid, YELLOW, "* Vase vozilo je zakljucano!");
SendClientMessage(playerid, YELLOW, "* Samo vi mozete uci u njega!");
}
else
{
Carlist=0;
SetVehicleParamsForAll(Carlist,0,0);
SendClientMessage(playerid, YELLOW, "* Vase vozilo je otkljucano!");
SendClientMessage(playerid, YELLOW, "Sada svi mogu uci u njega!");
}
}
else { SendClientMessage(playerid, COLOR_GREY, "* Vase vozilo je pokvareno! Popravite ga!"); }
}
else { SendClientMessage(playerid, COLOR_GREY, "Ne posjedujes vozilo!"); }
return 1;
}7. Maj 2013.
Decki ovako sam sada napravio da radi i ne ispisuje mi vlasnika auta i ne mogu da sjednem u auto...
if(Carlist!=-1)
{
if(Carlist == 1)
{
//SendClientMessage(playerid, SIVA, "{00C0FF} ( Izbacen! )Vozilo : Zakljucano | Vlasnik : Radimo na tome");
new string
format(string, sizeof string, "Vozilo Zakljucano | Vlasnik : %s ", Carlist);
xSCM(playerid, 0xB4B5B7FF, string);
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
if(Carlist!=-1)
{ // %s
if(Carlist == 0)
{
//SendClientMessage(playerid, SIVA, "{00C0FF} Vozilo : Otkljucano | Vlasnik : Radimo na tome... ");
new string
format(string, sizeof string, "Vozilo Otkljucano | Vlasnik : %s ", Carlist);
SCM(playerid, 0xB4B5B7FF, string);
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava