Send message to only people in a car
#1

How do I send this to people ONLY if they're in a car?
Код:
            if(PlayerInfo[playerid][pMember] == 11)
		    {
		        format(string, sizeof(string), " %s", text);
		    }
		    else
		    {
		        format(string, sizeof(string), " %s", text);
		    }
	        SendClientMessagel(COLOR_LIGHTGREEN, string);
	        return 0;
I'm thinking?
Код:
            if(PlayerInfo[playerid][pMember] == 11)
		    {
		        format(string, sizeof(string), " %s", text);
		    }
		    else
		    {
		        format(string, sizeof(string), " %s", text);
		    }
                if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
                {
	        SendClientMessage(COLOR_LIGHTGREEN, string);
	        return 0;
Reply


Messages In This Thread
Send message to only people in a car - by Zack9764 - 13.02.2011, 20:09
Re: Send message to only people in a car - by XoX - 13.02.2011, 20:11
Re: Send message to only people in a car - by Mean - 13.02.2011, 20:36

Forum Jump:


Users browsing this thread: 1 Guest(s)