[ZCMD]Setting Not work out
#1

pawn Код:
CMD:setkills(playerid,params[])
{
    if(PlayerInfo[playerid][Level] >= 3)
    {
        new id,kill;
        if(sscanf(params, "ui", id, kill)) return
        SendClientMessage(playerid, 0xFFFF00C8, "Usage: /Setkills <PlayerID> <kills>") ;
        if(IsPlayerConnected(id))
        {
            format(Jstring, sizeof(Jstring), "Admin %s has set your kills to '%d'",GetName(playerid),kill);
            SendClientMessage(id,lighterblue,Jstring);
            format(Jstring,sizeof(Jstring),"You have set %s's kills to %d", GetName(id), kill);
            SendClientMessage(playerid,yellow,Jstring);
            return PlayerInfo[id][Kills] = kill;
        }
        else return SendClientMessage(playerid,lighterblue,"Player is NOT connected!");
    }
    else return SendClientMessage(playerid,lighterblue,"You Are Not High Enough Level");
}

CMD:setdeaths(playerid,params[])
{
    if(PlayerInfo[playerid][Level] >= 3)
    {
        new id,dea;
        if(sscanf(params, "ui", id, dea)) return
        SendClientMessage(playerid, 0xFFFF00C8, "Usage: /Setdeaths <PlayerID> <Deaths>") ;
        if(IsPlayerConnected(id))
        {
            format(Jstring, sizeof(Jstring), "Admin %s has set your Deaths to '%d'",GetName(playerid),dea);
            SendClientMessage(id,lighterblue,Jstring);
            format(Jstring,sizeof(Jstring),"You have set %s's Deaths to %d", GetName(id), dea);
            SendClientMessage(playerid,yellow,Jstring);
            return PlayerInfo[id][Deaths] = dea;
        }
        else return SendClientMessage(playerid,lighterblue,"Player is NOT connected!");
    }
    else return SendClientMessage(playerid,lighterblue,"You Are Not High Enough Level");
}


Guys Please Help went i set player kill,Death Higher Is Worked Fine And If i /setdeath , /setkill to 0 is show the error :\ can anyone see my code and fix it
Reply


Messages In This Thread
[ZCMD]Setting Not work out - by donhu789 - 16.11.2013, 13:57
Re: [ZCMD]Setting Not work out - by Konstantinos - 16.11.2013, 14:03
AW: [ZCMD]Setting Not work out - by Skimmer - 16.11.2013, 14:08
Re: [ZCMD]Setting Not work out - by donhu789 - 16.11.2013, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)