Код:
if(!strcmp(cmdtext, "/ironman", true))
{
if(AccInfo[playerid][Level] < 1) return SendClientMessage(playerid,0xff00ffaa,"You are not authorised to use this command"); // this line checks if the player is a admin or not.
if((flying[playerid] = !flying[playerid]))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerHealth(playerid, 1000000000.0);
SetTimerEx("IronMan", 100, 0, "d", playerid);
SetTimerEx("DestroyMe", 500, 0, "d", CreateObject(2780, x, y, z - 3.0, 0.0, 0.0, 0.0));
}
else
SetPlayerHealth(playerid, 100.0);
return 0;
}
It is the first bracket that is wrong or on 3. line there is 1 more tab.