29.06.2014, 10:11
Try this:
My bad :P, I use other includes I guess
pawn Код:
CMD:id(playerid, params[])
{
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /id [playerid]");
if(IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "(ID: %d) - (Name: %s) ", giveplayerid, GetPlayerName(giveplayerid));
SendClientMessage(playerid, string);
}
else
{
SendClientMessage(playerid, "Invalid player specified.");
}
return 1;
}