SA-MP Forums Archive
Need a Help With Y_ini :( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need a Help With Y_ini :( (/showthread.php?tid=459664)



Need a Help With Y_ini :( - Raza2013 - 24.08.2013

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


Re: Need a Help With Y_ini :( - Raza2013 - 26.08.2013

Bumped can any one help me?


Re: Need a Help With Y_ini :( - ProjectMan - 26.08.2013

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);
}



Re: Need a Help With Y_ini :( - Raza2013 - 30.08.2013

Thanks Mate its working