GvaKO 0 Odesláno: 25. Leden, 2013 Share Odesláno: 25. Leden, 2013 Caute chcem aby ked je zamknute auto aby mi ukazalo text , ale neukazuje sa !! ked locknem CMD:vlock(playerid, params[]) { new vehicleid; if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { vehicleid = GetPlayerVehicleID(playerid); } else { vehicleid = GetClosestVehicle(playerid); if(!PlayerToVehicle(playerid, vehicleid, 5.0)) vehicleid = 0; } if(!vehicleid) return SendClientMessage(playerid, COLOR_RED, "Si ďaleko od svojho vozidla .. Musíš stáť hned pri ňom alebo v ňom sedieť!"); new id = GetVehicleID(vehicleid); if(!IsValidVehicle(id)) return SendClientMessage(playerid, COLOR_RED, "Nemáš kĺúče od tochto vozidla ..!"); if(GetPlayerVehicleAccess(playerid, id) < 2) return SendClientMessage(playerid, COLOR_RED, "Nemáš kĺúče od tochto vozidla ..!"); new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); if(doors == 1) { doors = 0; VehicleLock[id] = 0; GameTextForPlayer(playerid, "~g~doors unlocked", 3000, 6); } else { doors = 1; VehicleLock[id] = 1; GameTextForPlayer(playerid, "~r~doors locked", 3000, 6); } SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SaveVehicle(id); return 1; } Enterveh public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(ispassenger) return 1; new id = GetVehicleID(vehicleid); if(VehicleLock[id] != 1) // what ever variable you need is not 1 { SendClientMessage(playerid, -1, "text"); } return 1; } Text sa mi nezobrazuje Link to comment Share on other sites More sharing options...
Mivčo 90 Odesláno: 25. Leden, 2013 Share Odesláno: 25. Leden, 2013 Su aj inakšie Lock aj unlock skus niekde inde pohladat Link to comment Share on other sites More sharing options...
GvaKO 0 Odesláno: 25. Leden, 2013 Author Share Odesláno: 25. Leden, 2013 Potrebujem tento iny nie Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now