Hear and not in the car - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hear and not in the car (
/showthread.php?tid=114150)
Hear and not in the car -
SlashPT - 17.12.2009
hey all today i want if any guy know how to make if your are in a vehicle you cant hear nothing outside
for eg im inside the car and your outside and you say HAHA and for me dont display nothing...
Re: Hear and not in the car -
LarzI - 17.12.2009
pawn Code:
public OnPlayerText(playerid, text[])
{
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerInAnyVehicle( playerid ) && i != playerid && !IsPlayerInAnyVehicle( i ))
return true;
else if( !IsPlayerInAnyVehicle( playerid ) && i != playerid && IsPlayerInAnyVehicle( i ))
return false;
}
return true;
}
Try that
Re: Hear and not in the car -
SlashPT - 17.12.2009
thanks