Code:
if(IsPlayerInAnyVehicle(issuerid))
{
new State=GetPlayerState(issuerid);
if(State == PLAYER_STATE_DRIVER)
{
if(!IsPlayerInAnyVehicle(playerid))
{
new surf = GetPlayerSurfingVehicleID(playerid);
if(surf == INVALID_VEHICLE_ID)
{
GameTextForPlayer(issuerid, "~r~ Proibido DB", 3000, 5);
RemovePlayerFromVehicle(playerid);
new Float:colete = 0;
GetPlayerArmour(playerid, colete);
GetPlayerHealth(playerid, vida);
if(colete > 0)
{
if(colete > 100)
return 0;
SetPlayerArmour(playerid, amount + colete);
}
else
{
if(vida >= 100) return 0;
SetPlayerHealth(playerid, amount + vida);
}
}
}
}
}
o que tem de errado nesse cуdigo? quando um jogador estiver dirigindo um carro/moto e atirar й ejetado do veнculo e aparece a textdraw Proibido DB, porem nгo ta aparecendo nada e nem ejetando.