Windows Closed
#1

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(stringsizeof(string), "[Aknad Kinni]%s ьtleb: %s",RPN(playerid), text);
    
ProxDetector(12.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    
format(stringsizeof(string), "%s ьtleb: %s"RPNU(playerid), text);
    
KirjutaLogi("chat"string);
   } 
Reply
#2

You could send the message to only players that are in the same vehicle of the player when windows are closed.
Reply
#3

How?
Reply
#4

I'm new at pawno so i wait maybe someone can help..
Reply
#5

Код:
{
    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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)