Car Chat - Need help
#4

pawn Код:
// Put this somewhere in your FS/GM, aslong its not inside { }
SendCarMessage(carid, color, text[])
{
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInVehicle(i, carid) && IsPlayerConnected(i))
        {
            SendClientMessage(i, color, text);
        }
    }
    return 0;
}

//In your command add this:
SendCarMessage(carid, color, text[])
the last code would send to all players that are in any vehicle
Reply


Messages In This Thread
Car Chat - Need help - by HammerSmith - 16.06.2011, 18:06
AW: Car Chat - Need help - by xerox8521 - 16.06.2011, 18:18
Re: Car Chat - Need help - by Wesley221 - 16.06.2011, 18:26
Re: Car Chat - Need help - by CoaPsyFactor - 16.06.2011, 18:31
Re: Car Chat - Need help - by HammerSmith - 16.06.2011, 18:36
AW: Car Chat - Need help - by xerox8521 - 16.06.2011, 18:40
Re : Car Chat - Need help - by Shidony - 16.06.2011, 18:47
Re: AW: Car Chat - Need help - by HammerSmith - 16.06.2011, 18:50
Re : Car Chat - Need help - by Shidony - 16.06.2011, 18:55
AW: Re: AW: Car Chat - Need help - by xerox8521 - 16.06.2011, 19:01

Forum Jump:


Users browsing this thread: 2 Guest(s)