Problem ? /god
#3

There was a problem with GOD variable.

pawn Код:
CMD:god(playerid)
{
    if(P_DATA[playerid][P_God] == 0)
    {
        P_DATA[playerid][P_God] = 1;
      if(P_DATA[playerid][P_Registered] == 0)if(P_DATA[playerid][P_Registered] == 0) return ShowInfoTD(playerid, "~r~~h~You must be registered by using /register before using this command.");
      if(P_DATA[playerid][P_LoggedIn] == 0) return 1;
        SetPlayerHealth(playerid, 9999999);
        ResetPlayerWeapons(playerid);
        ShowInfoTD(playerid,"~p~Godmode~g~ ON~p~.");
    }
    else if(P_DATA[playerid][P_God] == 1)
    {
        P_DATA[playerid][P_God] = 0;
        ShowInfoTD(playerid,"~p~Godmode~r~ OFF~p~.");
        SetPlayerHealth(playerid, 100);
    }
    return 1;
}
Reply


Messages In This Thread
[REP+]Problem ? /god - by ahmad95 - 22.01.2013, 15:15
Re: Problem ? /god - by mendax - 22.01.2013, 15:30
Re: Problem ? /god - by Mr.Anonymous - 22.01.2013, 16:04
Re: Problem ? /god - by ahmad95 - 23.01.2013, 08:27

Forum Jump:


Users browsing this thread: 1 Guest(s)