Quote:
Originally Posted by Randy More
Remove the callback of OnPlayerCommandText since you won't use it and add this:
pawn Код:
CMD:god(playerid, params[]) { if(God[playerid]) { GameTextForPlayer(playerid, "~r~GOD ~r~MODE ~r~DISABLED", 3000, 3); SetPlayerHealth(playerid, 100); God[playerid] = 0; return 1; } else { GameTextForPlayer(playerid, "~r~GOD ~r~MODE ~r~DISABLED", 3000, 3); SetPlayerHealth(playerid, 100); God[playerid] = 1; return 1; } return 1; <----- this line is error. }
|
warning 225: unreachable code