Range please help
#1

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
PlayerInfo[playerid][pAdmin] == 8)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{FF3333}[Owner]{33CCFF}%s: %s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][pAdmin] == 7)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{FF3333}[Co-Owner]{33CCFF}%s: %s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][pAdmin] == 6)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{33AA33}[Head-Admin]{AFAFAF}%s: %s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][pAdmin] == 5)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{33CCFF}[Scripter]{AFAFAF}%s: %s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][pAdmin] == 4)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{0088FF}[Admin]{AFAFAF}%s:%s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][pAdmin] == 3)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{FF9900}[Moderator]{AFAFAF}%s:%s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][pAdmin] == 2)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{9ACD32}[Mega VIP]{AFAFAF}%s:%s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][pAdmin] == 1)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{FFFF00}[VIP]{AFAFAF}%s:%s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][Police] == 3)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{0088FF}[Leader]%s:%s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][Police] == 2)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{0088FF}[Officer]%s:%s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    else if(
PlayerInfo[playerid][Police] == 1)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "{0088FF}[Cadet]%s:%s"pNametext);
        
SendClientMessageToAll(-1,String);
        return 
0;
    }
    return 
0;

I start to make Role play who can help me then chat to see in range 30 meters please help
Reply
#2

use ProxDetector.
Check VincentDunn's tutorial about Roleplay Chats.
Reply
#3

Dont doble post !!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)