முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

IsPlayerSpawned

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Checks if a player is spawned.

NameDescription
playeridThe ID of the player to check.

Returns​

true - The player is spawned.

false - The player is not spawned.

Examples​

public OnPlayerText(playerid, text[])
{
if (!IsPlayerSpawned(playerid))
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You must be spawned to send messages.");
return 0;
}
return 1;
}