SA-MP Forums Archive
Admin & Vip tag - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admin & Vip tag (/showthread.php?tid=558601)



Admin & Vip tag - Neculai - 18.01.2015

Hello everyone i have this script :
Код:
if ( PlayerInfo [ playerid ] [ Vip ] ==1 || PlayerInfo [ playerid ] [ Vip ] ==2 || PlayerInfo [ playerid ] [ Vip ] ==3 )
	    {

			format ( str , 1500 , "%s{FFFFFF}[%d]{00FF00}[V.I.P]: {FFFFFF}%s" ,GetName(playerid), playerid , text [ 0 ] ) ;
			SendClientMessageToAll (0xFFFF00FF , str ) ;
			return 0;
		}

	if ( PlayerInfo [ playerid ] [ Level ] < 6 )
	    {

			format ( str , 1500 , "%s{FFFFFF}[%d]{00FF00}[Admin]: {FFFFFF}%s" ,GetName(playerid), playerid , text [ 0 ] ) ;
			SendClientMessageToAll (0xFFFF00FF , str ) ;
			return 0;
		}
But if the player has V.I.P in chat appears [Admin] tag


Re: Admin & Vip tag - Dubya - 18.01.2015

Change to
pawn Код:
else if ( PlayerInfo [ playerid ] [ Level ] < 6 )