06.03.2011, 17:56
You might have played CrazyBob's CnR and notice he has 10- codes like for example: Okay, affirmative (10-4), Good Job! (10-120)
I was wondering how do I make them? At the moment I have this code:
So in easier terms, when someone types 10-0 in the chat it will say Testing (10-0). I tried this above code but it didn';t work and it still showed up as 10-0 when someone typed it. 
Thanks.
I was wondering how do I make them? At the moment I have this code:
pawn Код:
if (strfind(text, "10-0") != -1) // THIS FINDS THE TEXT THAT THE PLAYER TYPES IN THE CHAT
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(text, 1024, "%s (%d): {FFFFFF}Testing (10-0)", PlayerName, playerid, text); // 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);
//SCROLL RIGHT -----> TO SEE THE REST
}

Thanks.