18.05.2010, 05:56
Quote:
Originally Posted by cAMo
public OnPlayerText(playerid, text[])
{ if(PlayerInfo[playerid][Rank] == 0) { new msg[128]; format(msg, sizeof(msg), "[ID=%d] %s", playerid, text); SendPlayerMessageToAll(playerid, msg); } if(PlayerInfo[playerid][Rank] == 1) { new msg[128]; format(msg, sizeof(msg), "[Vip|ID=%d] %s", playerid, text); SendPlayerMessageToAll(playerid, msg); } return 0; } |
Hello, I'm John Doe.
Depending on your rank, everyone will see something like:
[Vip|ID=15] Hello, I'm John Doe.
It has nothing to do with a command. Commands are defined under OnPlayerCommandText, not OnPlayerText.