22.07.2009, 16:43
try this
this warn the player that you are checking too ![Wink](images/smilies/wink.png)
pawn Код:
if(strcmp(cmd, "/id", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /id [playerid/Name]");
return 1;
}
new pl;
pl = ReturnUser(tmp);
if(pl == INVALID_PLAYER_ID)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "INVALID PLAYER ID !");
return 1;
}
new name[MAX_PLAYER_NAME]; GetPlayerName(pl name, sizeof(name));
new str[256]; format(str, sizeof(str), "ID:%d| Name: %s| Score:%d", pl, name, GetPlayerScore(pl));
SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
new name2[MAX_PLAYER_NAME]; GetPlayerName(playerid, name2, sizeof(name2));
new str[256]; format(str, sizeof(str), "%s is checking you", name2);
SendClientMessage(pl COLOR_GREEN, str);
return 1;
}
![Wink](images/smilies/wink.png)