The purpose of IsPlayerConnected?
#4

I think you didn't read my post properly. I said, that I've seen it there in several callbacks, but didn't understood what it did.
Let's assume this is the command, which is actually taken out from GF:
pawn Код:
if(strcmp(cmd, "/charity", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "(( USAGE: /charity [amount] ))");
                return 1;
            }//....
It's pretty much obvious that the player entering the command /charity is connected, that is why he is able to enter it. Please correct me if I'm wrong.
Reply


Messages In This Thread
The purpose of IsPlayerConnected? - by ||123|| - 13.07.2011, 15:55
Re: The purpose of IsPlayerConnected? - by freshOrange - 13.07.2011, 16:18
Re: The purpose of IsPlayerConnected? - by Kush - 13.07.2011, 16:24
Re: The purpose of IsPlayerConnected? - by ||123|| - 13.07.2011, 16:31
Re: The purpose of IsPlayerConnected? - by Calgon - 13.07.2011, 16:35
Re: The purpose of IsPlayerConnected? - by ||123|| - 13.07.2011, 16:42
Re: The purpose of IsPlayerConnected? - by ||123|| - 14.07.2011, 07:04
Re: The purpose of IsPlayerConnected? - by Kush - 14.07.2011, 07:28
Re: The purpose of IsPlayerConnected? - by ||123|| - 14.07.2011, 07:36
Re: The purpose of IsPlayerConnected? - by Kush - 14.07.2011, 07:49

Forum Jump:


Users browsing this thread: 1 Guest(s)