Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:rentparkiraj(playerid, params[], help)
- {
- #pragma unused params
- #pragma unused help
- new Float:motorent_Pos[4],i,rent_id;
- if(UlogovanProvera[playerid] == 0) return SCM(playerid, -1, ""CRVENA"WARNING: "BELA"Morate se ulogovati da bi ste koristili ovu komandu.");
- if(PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, -1, ""CRVENA"WARNING: "BELA"Ne mozete koristiti ovu komandu jer niste Administrator.");
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,""CRVENA" "BELA"Ne mozete koristiti ovu komandu jer se ne nalazite na motoru.");
- GetVehiclePos(Rent_Info[rent_id][rent_ModelID], motorent_Pos[0], motorent_Pos[1], motorent_Pos[2]);
- GetVehicleZAngle(Rent_Info[rent_id][rent_ModelID], motorent_Pos[3]);
- Rent_Info[rent_id][rent_PosX] = motorent_Pos[0];
- Rent_Info[rent_id][rent_PosY] = motorent_Pos[1];
- Rent_Info[rent_id][rent_PosZ] = motorent_Pos[2];
- Rent_Info[rent_id][rent_PosA] = motorent_Pos[3];
- DestroyVehicle(Rent_Info[rent_id][rent_ModelID]);
- Rent_Info[rent_id][rent_VoziloID] = CreateVehicle(Rent_Info[rent_id][rent_ModelID], Rent_Info[rent_id][rent_PosX], Rent_Info[rent_id][rent_PosY], Rent_Info[rent_id][rent_PosZ], Rent_Info[rent_id][rent_PosA], Rent_Info[rent_id][rent_Boja1], Rent_Info[rent_id][rent_Boja2], 3000);
- SCM(playerid,-1, ""CRVENA"INFO: "BELA"Uspesno ste parkirali motor.");
- Sacuvaj_Rent(rent_id);
- SetVehicleToRespawn(Rent_Info[rent_id][rent_ModelID]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment