+1 rep For helper
#1

i want a tag with admins and vip,s ,when they talk in main chat.. +1 for helper
see attachment u will understand
Reply
#2

Give me your OnPlayerText,Admin and vip variable..
Reply
#3

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;
    } 
Reply
#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
#5

Ehm, Yea sorry for that, i even wrote it on forums so, i just trying to help lol D:
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)