Need a Help With Y_ini :(
#1

hello guys i have a sensitive problem i have putted a two different commands /setkills and /setdeaths
ok /setdeaths its working fine but when i use /setkills so its showing only in /stats not in the score board i mean in TAB screen so can any one help me there is a code:

Quote:

CMD: setplayerkills(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new id,Jstring[128],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,blue,Jstring);
format(Jstring,sizeof(Jstring),"You have set %s's kills to %d", GetName(id), kill);
SendClientMessage(playerid,COLOR_YELLOW,Jstring);
return PlayerInfo[id][pKills] = kill;
}
else return SendClientMessage(playerid,blue,"Player is NOT connected!");
}
else return WrongMessage(playerid, COLOR_RED, 1);
}

its working fine in /stats but its not shown up in TAB screen plz help me
Reply
#2

Bumped can any one help me?
Reply
#3

The problem has nothing to do with Y_INI. The topic title is misleading. But anyway:

pawn Код:
CMD: setplayerkills(playerid,params[])
{
     if(PlayerInfo[playerid][pAdmin] >= 1)
     {
     new id,Jstring[128],kill;
     if(sscanf(params, "ui", id, kill)) return
     SendClientMessage(playerid, 0xFFFF00C8, "Usage: /Setkills <PlayerID> <kills>") ;
          if(IsPlayerConnected(id))
          {
          SetPlayerScore(id, kill); //I have added this line.
          format(Jstring, sizeof(Jstring), "Admin %s has set your kills to '%d'",GetName(playerid),kill);
          SendClientMessage(id,blue,Jstring);
          format(Jstring,sizeof(Jstring),"You have set %s's kills to %d", GetName(id), kill);
          SendClientMessage(playerid,COLOR_YELLOW,Jstring);
          return PlayerInfo[id][pKills] = kill;
          }
          else return SendClientMessage(playerid,blue,"Player is NOT connected!");
     }
     else return WrongMessage(playerid, COLOR_RED, 1);
}
Reply
#4

Thanks Mate its working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)