06.03.2012, 21:59
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;
}