27.06.2012, 03:25
Hello Everyone my server using lux Admin pm so the problem is the pm is in dialog i don't wan't it in dialog please can anyone help me with that
This is the code =
This is the code =
PHP код:
dcmd_pm(playerid,params[])
{
if(!strlen(params)) return
SendClientMessage(playerid, orange, "Usage: /pm [PlayerID]");
PMplayer1 = strval(params);
if(PMplayer1 == playerid) return
SendClientMessage(playerid, white, "ERROR: {FF0000} You can't send PM to yourself!");
if(!(IsPlayerConnected(PMplayer1) && PMplayer1 != INVALID_PLAYER_ID)) return
SendClientMessage(playerid, white, "ERROR: Player not Connected!");
new string[128];
GetPlayerName(PMplayer1, PmReceiver, sizeof(PmReceiver));
format(string,sizeof(string),"PM To: \"%s(%d)\" \n\nType the message to send:", PmReceiver, PMplayer1);
ShowPlayerDialog(playerid,DIALOG_TYPE_PM,DIALOG_STYLE_INPUT,"PrivateMessage",string,"Send!","Cancel");
return 1;
}