25.05.2013, 01:43
(
Последний раз редактировалось rangerxxll; 25.05.2013 в 03:01.
)
Resolved.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 511)
{
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}
new Float:x, Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z);
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == pilotjobvehicle)
{
if(pilotjob[playerid] == 0)
{
new Float:x, Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z);
return 1;
}
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 511)
{
new Float:x, Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z);
return 1;
}
}
return 1;
}