13.02.2011, 20:36
Example of a loop:
Will send you who is in vehicle, example
.
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 );
}
}
.

