new aname[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid, aname, sizeof(aname));
GetPlayerName(playerid, aname, sizeof(playerid));
format(string, sizeof(string), "PM from %s: %s", aname, inputtext);
SendClientMessage(playerid,0x0ffffff, string);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "You send to %s this message:\n %s", aname, inputtext);
ShowPlayerDialog(playerid, 444, DIALOG_STYLE_MSGBOX, "Message:",string, "Ok", "Close" );
new aname[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), "PM from %s: %s", aname, inputtext);
SendClientMessage(playerid,0x0ffffff, string);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "You send to %s this message:\n %s", aname, inputtext);
ShowPlayerDialog(playerid, 444, DIALOG_STYLE_MSGBOX, "Message:",string, "Ok", "Close" );
Originally Posted by Jeffry
Can you post the complete /pm command?
|
public OnPlayerClickPlayer(playerid, clickedplayerid, source){
c_var[playerid] = clickedplayerid;
if(dialogid == Nachricht)
{
if(response == 1)
{
new aname[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), "PM from %s: %s", aname, inputtext);
SendClientMessage( c_var[playerid],0x0ffffff, string);
new name[MAX_PLAYER_NAME];
GetPlayerName(c_var[playerid], name, sizeof(name));
format(string, sizeof(string), "You send to %s this message:\n %s", aname, inputtext);
ShowPlayerDialog(playerid, 444, DIALOG_STYLE_MSGBOX, "Message:",string, "Ok", "Close" );
}
}
if(listitem == 2){
new Float:x, Float:y, Float:z;
GetPlayerPos(c_var[playerid], x, y, z);
SetPlayerPos(playerid, x+2, y+2, z+2);
new pint = GetPlayerInterior(playerid);
SetPlayerInterior(c_var[playerid], pint);
if(IsPlayerInAnyVehicle(playerid))
{
new plveh = GetPlayerVehicleID(playerid);
SetVehiclePos(plveh, x+2, y+2, z+2);
PutPlayerInVehicle(playerid, plveh, 0);
}
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, 128, "Du hast dich erfolgreich zu %s geportet!",c_var[playerid]);
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_MSGBOX, "Butler:",string, "Ok", "SchlieЯen" );
}