What's wrong with this? +rep
#4

pawn Код:
CMD:cookies(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin]>=1)
    {
        new id, str[64];
        if(sscanf(params, "r", id)) return SendClientMessage(playerid, 0x0, "USAGE: /cookies [Player ID]");
        if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000, "This player is not connected!");
        format(str, sizeof(str), "%s(%d) has (%d) Cookies.", GetName(id), id,PlayerInfo[playerid][pCookies]);
        SendClientMessage(playerid, 0x0, str);
    }
    else SendClientMessage(playerid, 0x0, "You're not authorized to use this command.");
    return 1;
}
Reply


Messages In This Thread
What's wrong with this? +rep - by rangerxxll - 06.03.2012, 21:43
Re: What's wrong with this? +rep - by Cameltoe - 06.03.2012, 21:51
Re: What's wrong with this? +rep - by rangerxxll - 06.03.2012, 21:53
Re: What's wrong with this? +rep - by Cameltoe - 06.03.2012, 21:59
Re: What's wrong with this? +rep - by Basicz - 06.03.2012, 21:59
Re: What's wrong with this? +rep - by Cameltoe - 06.03.2012, 22:01
Re: What's wrong with this? +rep - by rangerxxll - 06.03.2012, 22:12
Re: What's wrong with this? +rep - by rangerxxll - 06.03.2012, 22:14
Re: What's wrong with this? +rep - by rangerxxll - 06.03.2012, 23:58
Re: What's wrong with this? +rep - by Basicz - 07.03.2012, 07:59

Forum Jump:


Users browsing this thread: 1 Guest(s)