Send message to only people in a car
#3

Example of a loop:
pawn Код:
SendClientMessage( playerid, 0xAAAAAA, "All players that are in any vehicle:" );
for( new i = 0; i < MAX_PLAYERS; i++ )
{
    if( IsPlayerInAnyVehicle( i ) )
    {
        new string[ 128 ];
        GetPlayerName( i, string, sizeof string );
        format( string, sizeof string, "%s", string );
        SendClientMessage( playerid, 0xAAAAAA, string );
    }
}
Will send you who is in vehicle, example .
Reply


Messages In This Thread
Send message to only people in a car - by Zack9764 - 13.02.2011, 20:09
Re: Send message to only people in a car - by XoX - 13.02.2011, 20:11
Re: Send message to only people in a car - by Mean - 13.02.2011, 20:36

Forum Jump:


Users browsing this thread: 1 Guest(s)