How can I make a 10- code
#4

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(!strcmp(text, "10-0", true))
    {
        new string[100], PlayerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(string, sizeof(string), "%s (%d): {FFFFFF}Testing (10-0)", PlayerName, playerid); // THIS LINE SHOWS A CUSTOM NAME OF THE 10 CODE WHICH IS Testing (10-0) - This is what I want it to show up as when someone types 10-0 in the chat
          SendClientMessageToAll(GetPlayerColor(playerid), text);
        return 0;
    }
    return 1;
}
try now
Reply


Messages In This Thread
How can I make a 10- code - by grand.Theft.Otto - 06.03.2011, 17:56
Re: How can I make a 10- code - by Sascha - 06.03.2011, 18:01
Re: How can I make a 10- code - by grand.Theft.Otto - 06.03.2011, 18:06
Re: How can I make a 10- code - by Sascha - 06.03.2011, 18:07
Re: How can I make a 10- code - by maramizo - 06.03.2011, 18:08
Re: How can I make a 10- code - by maramizo - 06.03.2011, 18:10
Re: How can I make a 10- code - by Lorrden - 06.03.2011, 18:11
Re: How can I make a 10- code - by Sascha - 06.03.2011, 18:14
Re: How can I make a 10- code - by Lorrden - 06.03.2011, 18:18
Re: How can I make a 10- code - by grand.Theft.Otto - 06.03.2011, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)