Preskoči na glavni sadržaj

HasGameText

Upozorenje

Dodano u verziji omp v1.1.0.2612. Ova stavka ne radi u starijim verzijama. Vrsta: funkcija.

Description​

Does the player currently have text in the given gametext style displayed?

NameDescription
playeridThe ID of the player to check the gametext for.
styleThe style of text to check.

Returns​

This function returns true if the player has gametext, or false if it is not.

Examples​

public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid, "Welcome to the server!", 5000, 3);

if (HasGameText(playerid, 3))
{
// Do something
}
return 1;
}