public OnPlayerEnterVehicle( playerid, vehicleid ) {
SetPVarInt( playerid, \"iLastVeh\", vehicleid );
return 1;
}
public OnPlayerCommandText( playerid, cmdtext[ ] ) {
if( strcmp( \"/lp\", cmdtext, true ) == 0 ) {
//A /lp parancsod részei...
PutPlayerInVehicle( playerid, GetPVarInt( playerid, \"iLastVeh\" ) );
SetVehiclePos( GetPVarInt( playerid, \"iLastVeh\" ), x, y, z );
return 1;
}
return 0;
}