SA-MP Forums Archive
+1 rep For helper - 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: +1 rep For helper (/showthread.php?tid=589526)



+1 rep For helper - sanamalik400 - 20.09.2015

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


Re: +1 rep For helper - PowerF - 20.09.2015

Give me your OnPlayerText,Admin and vip variable..


Re: +1 rep For helper - karemmahmed22 - 20.09.2015

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;
    } 



Re: +1 rep For helper - jlalt - 20.09.2015

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;
    } 



Re: +1 rep For helper - karemmahmed22 - 20.09.2015

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