Hallo. Ich möchte gerne die telefon nummer des Spielers im Befehl /id anzeigen lassen.
if(strcmp(cmd, "/id", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/id [Playerid/Name]");
return 1;
}
new target;
target = ReturnUser(tmp);
new sstring[256];
if(IsPlayerConnected(target))
{
if(target != INVALID_PLAYER_ID)
{
GetPlayerName(target, giveplayer, sizeof(giveplayer));
format(sstring, sizeof(sstring), "ID: (%d) %s",target,giveplayer);
SendClientMessage(playerid, COLOR_GRAD1, sstring);
}
}
}
return 1;
}