cone97

Untitled

Jun 23rd, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. YCMD:rentparkiraj(playerid, params[], help)
  2. {
  3. #pragma unused params
  4. #pragma unused help
  5. new Float:motorent_Pos[4],i,rent_id;
  6. if(UlogovanProvera[playerid] == 0) return SCM(playerid, -1, ""CRVENA"WARNING: "BELA"Morate se ulogovati da bi ste koristili ovu komandu.");
  7. if(PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, -1, ""CRVENA"WARNING: "BELA"Ne mozete koristiti ovu komandu jer niste Administrator.");
  8. if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,""CRVENA" "BELA"Ne mozete koristiti ovu komandu jer se ne nalazite na motoru.");
  9. GetVehiclePos(Rent_Info[rent_id][rent_ModelID], motorent_Pos[0], motorent_Pos[1], motorent_Pos[2]);
  10. GetVehicleZAngle(Rent_Info[rent_id][rent_ModelID], motorent_Pos[3]);
  11. Rent_Info[rent_id][rent_PosX] = motorent_Pos[0];
  12. Rent_Info[rent_id][rent_PosY] = motorent_Pos[1];
  13. Rent_Info[rent_id][rent_PosZ] = motorent_Pos[2];
  14. Rent_Info[rent_id][rent_PosA] = motorent_Pos[3];
  15. DestroyVehicle(Rent_Info[rent_id][rent_ModelID]);
  16. 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);
  17. SCM(playerid,-1, ""CRVENA"INFO: "BELA"Uspesno ste parkirali motor.");
  18. Sacuvaj_Rent(rent_id);
  19. SetVehicleToRespawn(Rent_Info[rent_id][rent_ModelID]);
  20. return 1;
  21. }
Add Comment
Please, Sign In to add comment