Windows Closed - 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)
+--- Thread: Windows Closed (
/showthread.php?tid=563317)
Windows Closed -
Eestlane123 - 15.02.2015
Hey,
So my problem is, if windows closed then people can see text inside car but cant see outside car.. I hope you understand what my problem is
PHP код:
{
format(string, sizeof(string), "[Aknad Kinni]%s ьtleb: %s",RPN(playerid), text);
ProxDetector(12.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
format(string, sizeof(string), "%s ьtleb: %s", RPNU(playerid), text);
KirjutaLogi("chat", string);
}
Re: Windows Closed -
Aerotactics - 15.02.2015
You could send the message to only players that are in the same vehicle of the player when windows are closed.
Re: Windows Closed -
Eestlane123 - 15.02.2015
How?
Re: Windows Closed -
Eestlane123 - 16.02.2015
I'm new at pawno so i wait maybe someone can help..
Re: Windows Closed -
sw3das - 16.02.2015
Код:
{
new player1VehID = GetPlayerVehicleID( playerid ),
player2VehID;
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected( i )
{
player2VehID = GetPlayerVehicleID( i );
if( player2VehID == player1VehID )
{
// Send Message To Player 'i'...
}
}
}
}
This should work. Though I haven't tested it.