RconLoginAttempt
#1

solved
Reply
#2

You cannot find the exact playerID. This seems like something you'd want to take a look at:
https://sampforum.blast.hk/showthread.php?tid=491835
Reply
#3

All the playerid try to convert/change to "i"
Reply
#4

There is no parameter called "playerid" on this function, you can only detect the player who logged in by his ip as it is mentioned in the wiki. you should use this.
pawn Код:
if(success)
    {
        new pip[16];
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true))
            {

                        TextDrawShowForPlayer(i,drawrcon0);
                        TextDrawShowForPlayer(i,drawrcon1);
                        TextDrawShowForPlayer(i,drawrcon2);
                        TextDrawShowForPlayer(i,drawrcon3);
                        TextDrawShowForPlayer(i,drawrcon4);
                        TextDrawShowForPlayer(i,drawrcon5);
                        TextDrawShowForPlayer(i,drawrcon6);
                        TextDrawShowForPlayer(i,drawrcon7);
                        TextDrawShowForPlayer(i,drawrcon8);
                        TextDrawShowForPlayer(i,drawrcon9);
                        TextDrawShowForPlayer(i,drawrcon10);
                        TextDrawShowForPlayer(i,drawrcon11);
                        TextDrawShowForPlayer(i,drawrcon14);
                        TextDrawShowForPlayer(i,drawrcon15);
                        SelectTextDraw(i,COLOR_RED);
              }
        }
    }
Reply
#5

Aha so i get the ip of the player to show him the textdraw right?
Reply
#6

Yes, try the code i wrote above, it should work fine.
Reply
#7

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Yes, try the code i wrote above, it should work fine.
It works..Thanks fellah!(friend)
Reply
#8

I would highly de-recommend using that method. What if there are multiple people on the same IP playing? Then this will show to allow of them.

That's why I recommened that he sees this:
https://sampforum.blast.hk/showthread.php?tid=491835

As it gets the EXACT playerid that logged in.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)