Small Help
#3

if i understood right you wanted to send the message to only those 2 teams?

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;
}
EDIT

Dang too slow.. either way both will work
Reply


Messages In This Thread
Small Help - by marinov - 21.01.2011, 16:12
Re: Small Help - by Vince - 21.01.2011, 16:16
Re: Small Help - by [WF]Demon - 21.01.2011, 16:17
Re: Small Help - by marinov - 21.01.2011, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)