• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] help with this pls
#1
Code:
CMD:id(playerid, params[]) { ? ? if (sscanf(params, "u", params[0])) return SendClientMessage(playerid, -1, "{D41818}[COMMAND]{AFAFAF} /id <nick>"); ? ? if (!IsPlayerConnected(params[0])) return SendClientMessage(playerid, -1, "{D41818}[ERROR]{AFAFAF} Player not found"); ? ? new string[128]; ? ? new name[MAX_PLAYER_NAME]; ? ? GetPlayerName(playerid, name, sizeof(name)); ? ? format(string, sizeof(string), "%d - [ID]:%s", params[0], name); ? ? SendClientMessage(playerid, 0x969696FF, string); ? ? return 1; }





my idea is to make a command so that when you put / id and the name of the player you can receive the ID of the player
  Reply


Messages In This Thread
help with this pls - by Nicolas_Belic - 2021-02-23, 11:29 PM
RE: help with this pls - by Nicolas_Belic - 2021-02-23, 11:55 PM
RE: help with this pls - by destiezk - 2021-02-24, 01:13 AM
RE: help with this pls - by destiezk - 2021-02-24, 01:19 AM
RE: help with this pls - by Kwarde - 2021-02-25, 09:26 PM
RE: help with this pls - by Freaksken - 2021-02-26, 11:30 AM
RE: help with this pls - by destiezk - 2021-02-26, 12:31 PM
RE: help with this pls - by ImOver - 2021-02-25, 06:37 PM