Quote:
Originally Posted by White_116
Попробуй так...
PHP код:
public OnPlayerUpdate(playerid)
{
new bool:is_ok = true;
if(W_PlayerDrive[playerid] != -1)
{
if(W_VehicleDriver[W_PlayerDrive[playerid]] != playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
is_ok = false;
}
}
else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
is_ok = false;
}
return is_ok;
}
|
Не помогло. Еще оружие в руках появляется.