Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:zakaci(playerid,params[], help)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pClan] == 8)
- {
- if(ParkingAuta(GetPlayerVehicleID(playerid)))
- {
- if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
- {
- if(GetPlayerState(playerid)==2)
- {
- new Float:pX,Float:pY,Float:pZ;
- GetPlayerPos(playerid,pX,pY,pZ);
- new Float:vX,Float:vY,Float:vZ;
- new Found=0;
- new vid=0;
- while((vid<MAX_VOZILA)&&(!Found))
- {
- vid++;
- GetVehiclePos(vid,vX,vY,vZ); //OVO JE TA LINIJA KOJA IMA ERROR
- if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
- {
- Found=1;
- if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
- {
- DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
- }
- else
- {
- AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
- }
- }
- }
- if(!Found)
- {
- SendClientMessage(playerid,0xFFFF00AA,"[BS:RP] Nema automobila u blizini.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "[BS:RP] Morate biti na mjestu vozaca.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "[BS:RP] Morate biti u pauku da bi mogli ovo koristit");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "[BS:RP] Morate biti u vozilu da biste koristili ovu komandu.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD2,"[BS:RP] Morate biti clan parking servisa da bi koristili ovu komandu.");
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment