21.01.2011, 16:17
if i understood right you wanted to send the message to only those 2 teams?
EDIT
Dang too slow.. either way both will work
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(RandomVehicles[0] <= vehicleid <= RandomVehicles[1] && ispassenger==0)
{
if(Team[playerid] ==1 || Team[playerid] == 2)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Team[i] == 2 || Team[i] == 4)
{
SendClientMessage(i, RED,"Someone is entering a vehicle.");
}
}
}
}
}
return 1;
}
Dang too slow.. either way both will work