[Command] Give a player's ID from a command
#3

Код:
dcmd_id(playerid, params[])
{
	new id, playername[24] ,string[256];
	if (sscanf(params, "s", playername))
	return SendClientMessage(playerid, 0xFF0000AA, "Utilisation: \"/id <nom du joueur>\"");
	else
	{
		id=GetPlayerID(playername);
		format(string, sizeof(string), "%s 's ID is %d.", playername, id);
		SendClientMessage(playerid, 0xFFFF00AA, string);
	}
	return 1;
}
i hope i didnt screw that up completedly now...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)