07.01.2011, 10:47
the # one, says i need to return a value, should i replace the return 0, to 1?
my onplayertext
nvm got that fixed...
but there is one problem, i want it to be a command.. like /# or /@ ..
also it doesnt show the reason only name and id ..
my onplayertext
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Muted[playerid] == 1)
SendClientMessage(playerid, Red, "You are muted and cannot talk");
if(text[0] == '#')
{
new pid, string[128];
new help[MAX_PLAYER_NAME];
GetPlayerName(playerid, help, 24);
format(string, 128, "( # ) %s(ID: %i)",help, playerid, pid, text);
MessageToAdmins(AdminColor, string);
SendClientMessage(playerid, Yellow, "Your message has been sent to admins.");
return 0;
}
}
but there is one problem, i want it to be a command.. like /# or /@ ..
also it doesnt show the reason only name and id ..