Opis problema:napravio sam komandu /obij i nema errora ali kada udjem ig i kucam /obij nista se nedesava.. :s
Dio scripte:
CMD:obij(playerid, params[])
{
if(PlayerInfo == 0 || PlayerInfo == 1 || PlayerInfo == 4 || PlayerInfo == 0 || PlayerInfo == 1 || PlayerInfo == 4 || PlayerInfo == 7 || PlayerInfo == 7)
{
SCM(playerid, COLOR_GREY, "Samo za clanove mafije/bande");
return 1;
}
if(Obijaauto != 9999) return SCM(playerid, COLOR_GREY, "Vec obijate vozilo");
for(new id = 1; id < MAX_VEHICLES; id++)
{
new Float:Pos;
GetVehiclePos(id, Pos, Pos, Pos);
if(IsPlayerInRangeOfPoint(playerid, 5.0, Pos, Pos, Pos))
{
if(!IsVehicleEmpty(id)) return SCM(playerid, COLOR_GREY, "Nemozete ukrasti vozilo dok je igrac u njemu");
if(CarInfo != 1) return SCM(playerid, COLOR_GREY, "Nemozete obiti vozilo od nekog posla ili neke organizacije");
if(CarInfo != VoziloJeAuto(id)) return SCM(playerid, COLOR_GREY, "Nemozete ovu vrstu vozila obiti");
Obijaauto = id;
//OnePlayAnim(playerid,"PED","CAR_pulloutL_LHS",4.0,0,0,0,0,0);//razbij prozor
OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,1);
SetTimerEx("Obija", 3000, false, "i",playerid);
SetTimerEx("Obija2", 2000, false, "i",playerid);
SCM(playerid, BELA, "Poceli ste obijati vozilo");
return 1;
}
return 1;
}
Slika/video://
