help pl0x :)
#1

hey i made a lil command in a FS but when i join my server and type /login lol its says USAGE: /ignore [playerid]

pawn Код:
if(strcmp(cmd, "/ignore", true) == 0)
    {
      tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xB4B5B7FF, "USAGE: /ignore [playerid]");
            return 1;
        }
        giveplayerid = strval(tmp);
        GetPlayerName(giveplayerid,playername,sizeof(playername));
        if(IsPlayerConnected(giveplayerid))
        {
            if (negeer[playerid][giveplayerid] == 0)
            {
              negeer[playerid][giveplayerid] = 1;
              format(string, 128, "You ignored %s. You won't see any PMs of him anymore.", playername);
              SendClientMessage(playerid, 0xFF0000AA, string);
            }
            else if(negeer[playerid][giveplayerid] >= 1)
            {
              negeer[playerid][giveplayerid] = 0;
              format(string, 128, "You have stopped ignoring %s. You will now see his PMs again.", playername);
              SendClientMessage(playerid, 0xFF0000AA, string);
            }
        }
        else
        {
            format(string, 128, "%d is not connected!", giveplayerid);
            SendClientMessage(playerid, 0xFF0000AA, string);
            return 1;
        }
        return 1;
    }
Reply


Messages In This Thread
help pl0x :) - by Think - 11.02.2009, 18:49
Re: help pl0x :) - by Danut - 11.02.2009, 18:50
Re: help pl0x :) - by Think - 11.02.2009, 18:51
Re: help pl0x :) - by Think - 12.02.2009, 14:09
Re: help pl0x :) - by Born2die - 12.02.2009, 16:01
Re: help pl0x :) - by boylett - 12.02.2009, 16:14
Re: help pl0x :) - by Think - 12.02.2009, 16:15
Re: help pl0x :) - by boylett - 12.02.2009, 16:16
Re: help pl0x :) - by Think - 12.02.2009, 16:17
Re: help pl0x :) - by boylett - 12.02.2009, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)