Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:stavikantu(playerid, cmdtext[])
- {
- if(UlogovanProvera[playerid] == 0) return Ulogovan(playerid);
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, ""CRVENA"#GRESKA "BELA"Niste u vozilu!");
- if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid)))) return SCM(playerid, -1, ""CRVENA"#GRESKA "BELA"Vase vozilo nije napravljeno za te svrhe!");
- if(kanta[playerid] == 0)
- {
- skanta[playerid] = CreateDynamicObject(1330, -0.00672, 0.80715, 0.20060, 20.00000, 0.00000, 0.00000);
- AttachObjectToVehicle(skanta[playerid], GetPlayerVehicleID(playerid), -0.00672, 0.80715, 0.20060, 20.00000, 0, 0);
- kanta[playerid] = 1;
- SCMF(playerid,-1,""ORANGE"INFO:"BELA"Uspesno ste stavili kantu na vase vozilo!");
- }
- else if(kanta[playerid] == 1)
- {
- DestroyObject(skanta[playerid]);
- kanta[playerid] = 0;
- SCMF(playerid,-1,""ORANGE"INFO:"BELA"Uspesno ste sklonili kantu sa vaseg vozila!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment