30.05.2009, 15:15
I suggest making it into a callback...
Example:
Example:
pawn Code:
forward SendCarMessage(color, string[]);
public SendCarMessage(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInVehicle(i, GetPlayerVehicleID(i)))
{
SendClientMessage(i, color, string);
}
}
}
}