05.06.2010, 09:52
Hey, I've got this code i put it under OnPlayerEnterVehicle Now its ment to lock the doors but for some reason it doesn't work.
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { AddVehicleComponent(vehicleid, 1010); // Nitro SendClientMessage(playerid,0x00FFF0FF,"Nitro has been automaticly installed in your vehicle."); SendClientMessage(playerid,0xEBFF00FF,"The vehicle doors are now locked type /unlock to unlock them."); for(new i=0; i < MAX_PLAYERS; i++) { if(i == playerid) continue; SetVehicleParamsForPlayer(GetPlayerVehicleID(vehicleid),i,0,1); } PlayerPlaySound(playerid,1138, 0.0, 0.0, 0.0);