GameTextForPlayer

From SA-MP Wiki

Jump to: navigation, search

GameTextForPlayer


Display gametext for a player.


Parameters:
(playerid, const string[], time, style)
playeridThe playerid to show the text to.
const string[]The text you want to display on the screen.
timeThe time you want the text to display for, in milliseconds.
styleThe style you want to show the text in.


This function does not return a specific value.


public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new string[50];
    format(string, sizeof(string), "You entered vehicle: %i", vehicleid);
    GameTextForPlayer(playerid, string, 3000, 4);
    return 1;
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools