rendered paste bodyif(strcmp(cmd, "/nome", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "] UTILIZE: /nome [Parte-do-nome]");
return 1;
}
new plo;
if(IsStringAName(tmp))
{
plo = GetPlayerID(tmp);
}
else
{
plo = strval(tmp);
}
if (IsPlayerConnected(plo))
{
SendClientMessage(playerid, COLOR_GRAD1, "] Nome: [%d] - ID: [%s]", plo, tmp);
return 1;
}
else
{
format(string, sizeof(string), "] %d não é um jogador ativo.", plo);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
return 1;
}