help with tag and more
#10

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;
}
This means if you type:

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.
Reply


Messages In This Thread
help with tag and more - by rong13 - 17.05.2010, 20:49
Re: help with tag and more - by rong13 - 17.05.2010, 21:58
Re: help with tag and more - by ViruZZzZ_ChiLLL - 17.05.2010, 21:59
Re: help with tag and more - by rong13 - 18.05.2010, 04:44
Re: help with tag and more - by cAMo - 18.05.2010, 05:10
Re: help with tag and more - by cAMo - 18.05.2010, 05:13
Re: help with tag and more - by rong13 - 18.05.2010, 05:24
Re: help with tag and more - by cAMo - 18.05.2010, 05:30
Re: help with tag and more - by rong13 - 18.05.2010, 05:50
Re: help with tag and more - by cAMo - 18.05.2010, 05:56

Forum Jump:


Users browsing this thread: 1 Guest(s)