06.10.2011, 12:36
Not a tutorial.
And it would be easier to use
Have a nice day !
And it would be easier to use
pawn Код:
public OnPlayerText(playerid, text) // The callback
{ // Opening the callback
if(PlayerInfo[playerid][pVIP] >= 1) // Checking if the player is VIP
{ // Opening the bracket
new string[128], name[MAX_PLAYER_NAME]; // Creating new string with size of 128 cells, and "name" with size of MAX_PLAYER_NAME
GetPlayerName(playerid, name, sizeof(name)); // Getting the players name into "name" variabl e
format(string, sizeof(string), "VIP %s: %s", name, text); // Formatting the script (%s = piece of text (string))
SendClientMessageToAll(text); // Sending the message typed to all players.
} // Closing the bracket
return 0; // Returning 0 so this will be sent instead of the normal message
} // Closing the callback