SA-MP Forums Archive
[Help]Hs In Stats And /seths cmd - 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: [Help]Hs In Stats And /seths cmd (/showthread.php?tid=288805)



[Help]Hs In Stats And /seths cmd - GAMER_PS2 - 09.10.2011

Guys This is a Little Big work
I have Horseshoe system of LuxAdmin In Which When A player Collects 30 Hs He Should Get a Vip lvl 1 free
ok now the prob is when a player directly collects last hs he gets a vip i want it should be in order
The HorseShoe Are Pickups Which I made Already

2> I want Horseshoe In Stats /stats of luxadmin

3>/seths in which we can set horseshoe of a player

PLZ HELP ME
HELP


Re: [Help]Hs In Stats And /seths cmd - [GOD]Dragonster82 - 09.10.2011

Can't you just do it yourself?

just ask for help when you get error when trying to do the scripting.


Re: [Help]Hs In Stats And /seths cmd - nilanjay - 09.10.2011

You can make /seths command in admin script just like /givemoney. Just look how to make /givmoney command.


Re: [Help]Hs In Stats And /seths cmd - GAMER_PS2 - 09.10.2011

@dragonster I made Horseshoe pickups and now i need that when a player collects LAST HORSESHOE He should not get vip lvl 1he should collect all hs in order then only he/she gets a vip lvl 1 free

And in /stats also i tryed it doesnot works


And like if he collects 1 hs [1st hs] he will get in stats
horseshoe = 1
and 2nd
horseshoe = 2


Re: [Help]Hs In Stats And /seths cmd - nilanjay - 09.10.2011

Did you include horshoe in /stats?


Re: [Help]Hs In Stats And /seths cmd - GAMER_PS2 - 09.10.2011

yes see this
pawn Код:
dcmd_stats(playerid,params[])
{
    new string[128];
    new pDeaths;
    new player1, h, m, s;
    new Horseshoe;
   
    if(!strlen(params)) player1 = playerid;
    else player1 = strval(params);

    if(IsPlayerConnected(player1))
    {
    TotalGameTime(player1, h, m, s);
    if(AccInfo[player1][Deaths] == 0) pDeaths = 1;
    else pDeaths = AccInfo[player1][Deaths];
    format(string, sizeof(string), "|- %s's Statistics -|",PlayerName2(player1));
    SendClientMessage(playerid, green, string);
    format(string, sizeof(string), "Kills: [%d] | Horseshoe:%d | Deaths: [%d] | Ratio: [%0.2f] | Money: [$%d] | Time: [%d] hrs [%d] mins [%d] secs |", AccInfo[player1][Kills],Horseshoe, AccInfo[player1][Deaths],Float:AccInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1), h, m, s);
    return SendClientMessage(playerid, green, string);
    }
    else return SendClientMessage(playerid, red, "ERROR: Player Not Connected!");
}



Re: [Help]Hs In Stats And /seths cmd - GAMER_PS2 - 09.10.2011

Help Plz Plz