Issue with God Mode
#2

This one should work:

PHP код:
CMD:zgod(playeridparams[])
{
    if(
usergod == 0)
    {
        
SetPlayerHealth(playerid99999);
        
SetPlayerArmour(playerid99999);
        
usergod 1;
        
GameTextForPlayer(playerid,"~w~GOD MODE: ~r~ON!",5000,5);
    }
    else if(
usergod == 1)
    {
        
SetPlayerHealth(playerid100);
        
SetPlayerArmour(playerid0);
        
usergod 0;
        
GameTextForPlayer(playerid,"~w~GOD MODE: ~r~OFF!",5000,5);
    }
    return 
1;

You should return 1 at the end of the code like I did.
Reply


Messages In This Thread
Issue with God Mode - by UnknownGamer - 22.10.2012, 19:31
Re: Issue with God Mode - by gtakillerIV - 22.10.2012, 19:35
Re: Issue with God Mode - by SumX - 22.10.2012, 19:40
Re: Issue with God Mode - by gtakillerIV - 22.10.2012, 19:51

Forum Jump:


Users browsing this thread: 1 Guest(s)