26.03.2013, 03:03
Hey guys,
i have this script under OnPlayerText :-
Its working but if someone types, it given an message with #(message) in the Chat.It shows to everyplayer.
Please fix it.
i have this script under OnPlayerText :-
Code:
if(pInfo[playerid][Adminlevel] >= 1 && text[0] == '#') { new msg[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(msg, sizeof(msg), "[ADMIN CHAT] %s: %s", pName, text[1]); SendMessageToAdmins(msg); } if(pInfo[playerid][VIPlevel] >= 1 && text[0] == '*') { new msg[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(msg, sizeof(msg), "[VIP CHAT] %s: %s", pName, text[1]); SendMessageToVIPs(msg); }
Please fix it.