Onplayertext problem!
#1

Hello,i have a problem with my script.I created a mask system and it works good.The only problem is when the player is inside a vehicle.The text will send if mask is off,but when mask is on nothing happens.

CODE:

Код:
for( new i = 0; i != MAX_PLAYERS; i++ )
        		{
        	    	if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
        	    	{
        	    		if(GetPlayerVehicleID(i) == vehicleid)
        	    		{
        	    		    if(IsMask[playerid] == 1)
							{
				        		format(string, sizeof(string), "(VEHICLE)  Stranger says: %s", text);
				        		SendClientMessage(i, COLOR_FADE2, string);
				        		
							}
							else
							{
        	    	    		format(string, sizeof(string), "(VEHICLE) %s says: %s", sendername, text);
        	    	    		SendClientMessage(i, COLOR_FADE2, string);
        	    	    		
        	    	    	}
        	    	    	return 0;
						}
					}
Any idea?
Reply


Messages In This Thread
Onplayertext problem! - by daghost111 - 02.03.2017, 19:06
Re: Onplayertext problem! - by LetsOWN[PL] - 02.03.2017, 21:11
Re: Onplayertext problem! - by Toroi - 02.03.2017, 22:11
Re: Onplayertext problem! - by daghost111 - 12.03.2017, 15:57
Re: Onplayertext problem! - by LEOTorres - 12.03.2017, 16:09
Re: Onplayertext problem! - by daghost111 - 12.03.2017, 16:26
Re: Onplayertext problem! - by LEOTorres - 12.03.2017, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)