Help Me out
#5

Free suggestion, in the PlayerInfo enum put this "PlayerName[24]".
Under OnPlayerConnect do:
Код:
GetPlayerName(playerid, PlayerInfo[playerid][PlayerName], 24);
So no need to get a player name 2000 times, until in your server a player can change his name of course.
Код:
            foreach(Player, i)
            {
                if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pFaction] != 0)
                {
                    format(string, sizeof(string), "*** %s from your faction has loggedin", PlayerInfo[playerid][PlayerName]);
                    SendClientMessage(i, COLOR_JUNIORADMIN, string);
                }
                if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang] && PlayerInfo[i][pGang] != 255)
                {
                    format(string, sizeof(string), "*** %s from your gang has loggedin", PlayerInfo[playerid][PlayerName]);
                    SendClientMessage(i, COLOR_JUNIORADMIN, string);
                }
                
            }
Reply


Messages In This Thread
Help Me out - by kochtebene - 03.09.2017, 10:01
Re: Help Me out - by Arbico - 03.09.2017, 10:51
Re: Help Me out - by Kane - 03.09.2017, 11:10
Re: Help Me out - by Arbico - 03.09.2017, 11:34
Re: Help Me out - by kAn3 - 03.09.2017, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)