03.06.2018, 07:22
Quote:
Hi, I am leaving you today with a question regarding the intrusion into the chat. I know that a lot of people have already done and I'm thinking how to do it.
An example of honey for cyanating messages: Auri: Hi,Forum SAMP, how are you? After connecting to the screen < surprised > to show us in progress, which will just look. Auri: Hi,Forum SAMP, < surprised > how are you? Can anyone help me with this? |
PHP код:
new name[MAX_PLAYER_NAME], string[228];// define the needed variables
GetPlayerName(playerid, name, sizeof(name));// Getting the players name
format(string, sizeof(string), "Hi, FORUM SAMP, %s how are you today", name);// Inserting the players name into the message
//%s is used to input strings, so the player name is a string and it would be inputted there.
SendClientMessage(playerid,0xFFFF00FF, string); // Sending the message to the player with his/her name inserted in it