SA-MP Forums Archive
[Ajuda] Sistema anti DB - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Sistema anti DB (/showthread.php?tid=646552)



Sistema anti DB - SeckSeck - 18.12.2017

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.


Re: Sistema anti DB - SeckSeck - 18.12.2017

...;.


Re: Sistema anti DB - Marllun - 18.12.2017

Tudo