Need Help With 2 Commands!
#3

pawn Код:
dcmd_setkills(playerid,params[])
{
    if(Player[playerid][admin] < 3)return 0;
    new pID, Kills;
    if(sscanf(params,"ud",pID,Kills)) return SendClientMessage(playerid,COLOR_GREY,"|| Usage: /setkills [playerid] [kills] ||");
    if(!IsPlayerConnected(pID)) return 0;
    new pname[24], playerfile[100];
    GetPlayerName(pID,pname,sizeof(pname));
    format(playerfile,sizeof(playerfile),"Lsgw/Users/%s.ini",pname);
    dini_IntSet(playerfile,"Kills",Kills);
    return 1;
}
Reply


Messages In This Thread
Need Help With 2 Commands! - by [Lsgw]LoL - 18.05.2011, 14:34
Re: Need Help With 2 Commands! - by DeathOnaStick - 18.05.2011, 14:36
Re: Need Help With 2 Commands! - by MadeMan - 18.05.2011, 14:49
Re: Need Help With 2 Commands! - by [Lsgw]LoL - 18.05.2011, 14:49
Re: Need Help With 2 Commands! - by [Lsgw]LoL - 18.05.2011, 15:15

Forum Jump:


Users browsing this thread: 2 Guest(s)