18.12.2017, 19:36
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); } } } } }