Leader name
#5

pawn Code:
else if (PlayerToPoint(2.0, playerid,2421.4934,-1219.2512,25.5613)) //
            {
                new leadername[36];
                for(new i=0;i<MAX_PLAYERS;i++)
                {
                    if(PlayerInfo[i][pLeader] == 1)
                    {
                        GetPlayerName(i, leadername, sizeof(leadername));
                    }
                    SetPlayerInterior(playerid,2);
                    SetPlayerPos(playerid,1204.809936,-11.586799,1000.921875);
                    new tmp2[256];
                    format(tmp2, sizeof(tmp2), "~w~This place owned by:~g~ %s", leadername);
                    GameTextForPlayer(playerid, tmp2, 5000, 1);
                }
            }
I think he wants, that when a player enters a certain area, the player will be shown a message with the name of the area's owner. But he isn't getting the name of the leader. Surely this:

pawn Code:
PlayerInfo[playerid][pLeader] = 1
wouldn't mean the name of the leader ?
Reply


Messages In This Thread
Leader name - by Qur - 18.11.2011, 23:01
Re: Leader name - by Luis- - 18.11.2011, 23:08
Re: Leader name - by Unte99 - 18.11.2011, 23:11
Re: Leader name - by Luis- - 18.11.2011, 23:12
Re: Leader name - by Unte99 - 18.11.2011, 23:28
Re: Leader name - by Qur - 19.11.2011, 07:30
Re: Leader name - by Jack_Leslie - 19.11.2011, 07:35
Re: Leader name - by Unte99 - 19.11.2011, 07:37
Re: Leader name - by Qur - 19.11.2011, 08:04

Forum Jump:


Users browsing this thread: 2 Guest(s)