25.11.2012, 12:15
Quote:
dcmd_getname(playerid,params[]) { new id; new string[64]; new name[MAX_PLAYER_NAME]; if(!strlen(params)) return SendClientMessage(playerid,0xFFFF00AA,"USAGE: /Getname [playerid]"); { else if (!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFFFF00AA,"Player is not connected"); else { GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"PlayerName is: %s[ID:%d]",name,id); SendClientMessage(playerid,0xFFFF00AA,string); } return 1; } } |