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

TogglePlayerGhostMode

எச்சரிக்கை

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

Description​

Toggle player's ghost mode. Ghost mode disables the collision between player models.

NameDescription
playeridThe ID of the player to toggle the ghost mode.
bool:toggletrue for enable and false for disable.

Returns​

This function always returns true.

Examples​

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/ghostmode", true))
{
TogglePlayerGhostMode(playerid, true);
SendClientMessage(playerid, -1, "SERVER: You enabled the ghost mode!");
return 1;
}
return 0;
}