07.06.2015, 05:46
Quote:
Hy all !
I have a problem. I make a dialog to transport wood, look: PHP код:
PHP код:
PHP код:
|
try this:
Код:
new pCar[MAX_PLAYERS]; if(dialogid == DIALOG_TRANSPORTWOOD) { if(response) { if(listitem == 0) { new CarWood = CreateVehicle(411,-431.8788,-1410.3784,22.0100,0,0,0,0); PutPlayerInVehicle(playerid,CarWood,0); pCar[playerid] = GetPlayerVehicleID(playerid); DisablePlayerCheckpoint(playerid); } } return 1; } public OnPlayerExitVehicle(playerid, vehicleid){ DestroyVehicle(pCar[playerid]); return 1; } public OnPlayerConnect(playerid){ pCar[playerid] = -1; return 1; } public OnPlayerDisconnect(playerid,reason){ DestroyVehicle(pCar[playerid]); return 1; }