24.05.2012, 12:44
Hey there I got a problem with the following command, it doesn't show up when you execute the command.
pawn Код:
COMMAND:id(playerid,params[])
{
new Msg[128], Name, Msgname[24]; // Gives the variables for the /id command
if (sscanf(params, "u", Name)) // Check if the player has typed the command correctly
SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/id <Part of name/name>\""); // else send how it should be.
if (IsPlayerConnected(Name)) // Check if the other player is connected
{
GetPlayerName(Name, Msgname, sizeof(Msgname));
format(Msg, 128, "Name/ID is: %s(%i)", Msgname, Name);
}
return 1;
}