kannst du doch auch so machen
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
new RecName[24], PlayerName[24];
GetPlayerName(recieverid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(!IsPlayerConnected(recieverid))
return SendClientMessage(playerid, 0xAFAFAFAA, "INVALID ID!");
if(recieverid == playerid)
return SendClientMessage(playerid, 0xAFAFAFAA, "SERVER: The receiver can't be yourself.");
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Private message ~r~Sent~y~.", 3000, 3);
GameTextForPlayer(recieverid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Private message ~r~Recieved~y~.", 3000, 3);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
PlayerPlaySound(recieverid, 1057, 0.0, 0.0, 0.0);
format(str, sizeof(str), "PM from %s(%i): %s", PlayerName, playerid, text);
SendClientMessage(recieverid, 0x33AAFFFF, str);
format(str, sizeof(str), "PM sent to %s(%i): %s", RecName, recieverid, text);
SendClientMessage(playerid, 0x33AAFFFF, str);
return true;
}
so habs ich in meinem gm