[Tutorial] How To Make Vip Say In LuxAdmin
#2

Not a tutorial.
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
Have a nice day !
Reply


Messages In This Thread
How To Make Vip Say In LuxAdmin - by GAMER_PS2 - 06.10.2011, 12:05
Re: How To Make Vip Say In LuxAdmin - by Max_Coldheart - 06.10.2011, 12:36
Re: How To Make Vip Say In LuxAdmin - by GAMER_PS2 - 06.10.2011, 12:56
Re: How To Make Vip Say In LuxAdmin - by Max_Coldheart - 06.10.2011, 12:57
Re: How To Make Vip Say In LuxAdmin - by Hiddos - 06.10.2011, 13:05
Re: How To Make Vip Say In LuxAdmin - by GAMER_PS2 - 06.10.2011, 13:06

Forum Jump:


Users browsing this thread: 2 Guest(s)