strcmp to zcmd
#10

Quote:
Originally Posted by whitetigerswt
Посмотреть сообщение
use

pawn Код:
CMD:god(playerid, params[])
{
    #pragma unused params
    if(God[playerid])
    {
         GameTextForPlayer(playerid, "~r~GOD MODE DISABLED", 3000, 3);
         SetPlayerHealth(playerid, 100);
         God[playerid] = 0;
 
    }
    else
    {
         GameTextForPlayer(playerid, "~r~GOD MODE ENABLED", 3000, 3);
         SetPlayerHealth(playerid, 100);
         God[playerid] = 1;
 
    }
    return 1;
}
no error but still not working. Can you give me another script for god mode? that uses 1 command.
/god - on /god -off
Reply


Messages In This Thread
strcmp to zcmd - by kbalor - 26.06.2012, 08:01
Re: strcmp to zcmd - by 404 Not Found - 26.06.2012, 08:04
Re: strcmp to zcmd - by kbalor - 26.06.2012, 08:10
Re: strcmp to zcmd - by 404 Not Found - 26.06.2012, 08:13
Re: strcmp to zcmd - by Randy More - 26.06.2012, 08:15
Re: strcmp to zcmd - by kbalor - 26.06.2012, 08:22
Re: strcmp to zcmd - by Whitetiger - 26.06.2012, 08:27
Re: strcmp to zcmd - by Randy More - 26.06.2012, 08:29
Re: strcmp to zcmd - by Skaizo - 26.06.2012, 08:32
Re: strcmp to zcmd - by kbalor - 26.06.2012, 08:35

Forum Jump:


Users browsing this thread: 4 Guest(s)