20.12.2010, 20:39
Quote:
Didnt work =/
i want it like, First i type "/status" then should an dialog like THIS show on my scenn with my status Statsus... Name: %s ID: %d |
Try this one below:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/status", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Name: %s\nYour ID: %d",name,playerid);
ShowPlayerDialog(playerid, DIALOGID_GOES_HERE, DIALOG_STYLE_MSGBOX, "Info", string, "Done", "Cancel", playerid);
return 1;
}
}
return 0;
}