GameTextForPlayer
From SA-MP Wiki
GameTextForPlayer
Display gametext for a player.
(playerid, const string[], time, style)
| playerid | The playerid to show the text to. |
| const string[] | The text you want to display on the screen. |
| time | The time you want the text to display for, in milliseconds. |
| style | The 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.
- GameTextForAll: Display gametext to all players.
- TextDrawShowForPlayer: Show a textdraw for a certain player.
