Y_Ini Not Saving Data..
#10

I cannot use any other administration commands, only makeadmin since it needs rcon to work....
and here is the other command.
Code:
CMD:sethp(playerid, params[])
{
    new id, hp, sendername[MAX_PLAYER_NAME], string[128];
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
    else if(sscanf(params,"ui", id, hp)) return SCM(playerid, COLOR_GREY,"USAGE: /sethp [playerid/partofname] [ammount]");
    else if(!IsPlayerConnected(id)) return SCM(playerid, COLOR_RED,"Invalid player ID.");
    else {
        SetPlayerHealth(id, hp);
        format(string, sizeof(string),"Your Health Has Been Set To %i By Administrator %s", hp, sendername);
        SendClientMessage(id, COLOR_GREEN, string);
    }
    return 1;
}
Reply


Messages In This Thread
Y_Ini Not Saving Data.. - by Littlehelper - 15.02.2012, 11:15
Re: Y_Ini Not Saving Data.. - by Littlehelper - 15.02.2012, 11:29
Re: Y_Ini Not Saving Data.. - by Littlehelper - 15.02.2012, 11:37
Re: Y_Ini Not Saving Data.. - by KingHual - 15.02.2012, 11:42
Re: Y_Ini Not Saving Data.. - by Littlehelper - 15.02.2012, 11:47
Re: Y_Ini Not Saving Data.. - by Konstantinos - 15.02.2012, 11:51
Re: Y_Ini Not Saving Data.. - by KingHual - 15.02.2012, 11:55
Re: Y_Ini Not Saving Data.. - by Littlehelper - 15.02.2012, 11:58
Re: Y_Ini Not Saving Data.. - by Littlehelper - 15.02.2012, 12:01
Re: Y_Ini Not Saving Data.. - by Littlehelper - 15.02.2012, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)