A Little Help
#2

pawn Код:
if(strcmp(cmdtext,"/god",true)==0)
{
    new string[256];
    if(pAdmin[playerid] == 1)
    {
        if(God[playerid] == 0)
        {
            God[playerid] = 1;
            SendClientMessage(playerid,COLOR_GREEN,"God Mode On");
            GetPlayerName(playerid,name,sizeof(name));
            format(string,sizeof(string),"%s is a God",name);
            SendClientMessageToAll(COLOR_BLUE,string);
        }
        else
        {
            God[playerid] = 0;
            SendClientMessage(playerid,COLOR_RED,"God Mode Off");
            SetPlayerHealth(playerid, 100);
            GetPlayerName(playerid,name,sizeof(name));
            format(string,sizeof(string),"%s is a God no more",name);
            SendClientMessageToAll(COLOR_BLUE,string);
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"You Are Not An Admin!);
    }
    return 1;
}
Try This Untested Version

EDIT: Also Try To Mention Line Containing Error Which line is that
Reply


Messages In This Thread
A Little Help - by Littlehelper - 02.01.2012, 15:32
Re: A Little Help - by Danyal - 02.01.2012, 15:36
Re: A Little Help - by Mokerr - 02.01.2012, 15:41
Re: A Little Help - by Konstantinos - 02.01.2012, 15:41
Re: A Little Help - by Littlehelper - 02.01.2012, 15:42
Re: A Little Help - by Littlehelper - 02.01.2012, 15:49
Re: A Little Help - by Danyal - 02.01.2012, 15:51
Re: A Little Help - by Littlehelper - 02.01.2012, 15:56
Re: A Little Help - by Danyal - 02.01.2012, 16:01
Re: A Little Help - by Littlehelper - 02.01.2012, 16:06

Forum Jump:


Users browsing this thread: 3 Guest(s)