31.08.2013, 04:34
Im bit confused. this my CMD:ID
This is Correct or Something wrong with this
This is Correct or Something wrong with this
Quote:
CMD:id(playerid, params[]) { new string[128], giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /id [playerid]"); if(IsPlayerConnected(giveplayerid)) { format(string, sizeof(string), "(ID: %d) - (Name: %s) - (Level: %d) - (Ping: %d)", giveplayerid, GetPlayerNameEx(giveplayerid), PlayerInfo[giveplayerid][pLevel], GetPlayerPing(giveplayerid)); SendClientMessageEx(playerid, COLOR_WHITE, string); } else { SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified."); } return 1; } |