+1 rep For helper
#4

Quote:
Originally Posted by karemmahmed22
Посмотреть сообщение
OnPlayerText:-
PHP код:
    new 
        
tmpstr[125],
        
pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNamesizeof(pName));
    if(
YourVIPCheckHere == 1)   // Change to your vip check
    
{
        
format(tmpstr,sizeof(tmpstr),"(VIP) %s: %s",pName,text);
        
SendClientMessageToAll(-1tmpstr); // << Change -1 to your color.
        
return 0;
    }
    else if(
YourAdminCheckHere == 1// Change to your admin check
    
{
        
format(tmpstr,sizeof(tmpstr),"(ADMIN) %s: %s",pName,text);
        
SendClientMessageToAll(-1tmpstr); // << Change -1 to your color.
        
return 0;
    } 
if player is admin and vip will complete he (vip) tag : o you have to put admin permission before vip

PHP код:
    new 
        
tmpstr[125],
        
pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNamesizeof(pName));
    if(
YourAdminCheckHere == 1// Change to your admin check
    
{
        
format(tmpstr,sizeof(tmpstr),"(ADMIN) %s: %s",pName,text);
        
SendClientMessageToAll(-1tmpstr); // << Change -1 to your color.
        
return 0;
    }
    else if(
YourVIPCheckHere == 1)   // Change to your vip check
    
{
        
format(tmpstr,sizeof(tmpstr),"(VIP) %s: %s",pName,text);
        
SendClientMessageToAll(-1tmpstr); // << Change -1 to your color.
        
return 0;
    } 
Reply


Messages In This Thread
+1 rep For helper - by sanamalik400 - 20.09.2015, 06:48
Re: +1 rep For helper - by PowerF - 20.09.2015, 07:18
Re: +1 rep For helper - by karemmahmed22 - 20.09.2015, 07:35
Re: +1 rep For helper - by jlalt - 20.09.2015, 09:31
Re: +1 rep For helper - by karemmahmed22 - 20.09.2015, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)