Advertisement
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;
- 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.");
- for(new rent_id = 0; rent_id < sizeof(Rent_Info); rent_id++)
- {
- if(Rent_Info[rent_id][rent_VoziloID] == GetPlayerVehicleID(playerid))
- {
- GetVehiclePos(Rent_Info[i][rent_ModelID], motorent_Pos[0], motorent_Pos[1], motorent_Pos[2]);
- GetVehicleZAngle(Rent_Info[i][rent_ModelID], motorent_Pos[3]);
- Rent_Info[i][rent_Pos][ 0 ] = motorent_Pos[0];
- Rent_Info[i][rent_Pos][ 1 ] = motorent_Pos[1];
- Rent_Info[i][rent_Pos][ 2 ] = motorent_Pos[2];
- Rent_Info[i][rent_Pos][ 3 ] = motorent_Pos[3];
- DestroyVehicle(Rent_Info[i][rent_ModelID]);
- Rent_Info[i][rent_VoziloID] = CreateVehicle(Rent_Info[rent_id][rent_ModelID], Rent_Info[rent_id][rent_Pos][0], Rent_Info[rent_id][rent_Pos][1], Rent_Info[rent_id][rent_Pos][2], Rent_Info[rent_id][rent_Pos][3], 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(GetPlayerVehicleID(playerid));
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement