- 0
Permis auto sv trucking
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Dan_13
salut,recent am vazut pe un server de trucking examen auto ma rog pot baga fs dar imi treb cind te urci in masina sa te dea jos si sa scrie la chat nu ai permis si cind intri dupa ce iti alegi jobu sati arate un dialog cu msg_box
Nu ai permis:
http://postimg.org/image/g2byk1lkv/
Dialog Msg Box:
http://postimg.org/image/8a7uyi0tz/
ONplayerEnterVehicle
[pawn]// This callback gets called whenever a player enters a vehicle
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
// Setup local variables
new engine, lights, alarm, doors, bonnet, boot, objective;
// Check if the vehicle has fuel
if (AVehicleData[vehicleid][Fuel] > 0)
{
// Start the engine and turn on the lights
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);
}
// Store the player's current location and interior-id, otherwise anti-airbreak hack code could kick you
GetPlayerPos(playerid, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]);
APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid);
return 1;
}[/pawn]
cu dialogu cu msgbox cred ca ma descurc
13 answers to this question
Recommended Posts