Command
#6

And how about this? Sorry I am kinda dumb at zcmd + sscanf.

pawn Код:
if(strcmp(cmd, "/describe", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "   You need to login first !");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "HINT: /describe [playerid/PartOfName]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                    format(string, sizeof(string), "%s's appearance:", giveplayer);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    format(string, sizeof(string), "%s", PlayerInfo[giveplayerid][pApp]);
                    SendClientMessage(playerid, COLOR_PURPLE, string);
                    return 1;
                }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Command - by KotoK - 30.01.2011, 23:22
Re: Command - by PeteShag - 31.01.2011, 00:42
Re: Command - by Antonio [G-RP] - 31.01.2011, 00:43
Re: Command - by KotoK - 31.01.2011, 01:54
Re: Command - by JamesC - 31.01.2011, 02:37
Re: Command - by KotoK - 31.01.2011, 02:50
Re: Command - by PeteShag - 31.01.2011, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)