SA-MP Forums Archive
[FilterScript] Horseshoe system - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Horseshoe system (/showthread.php?tid=322742)



Horseshoe system - [XS]Scarface - 03.03.2012

Hello guys i come today with my first filterscript xD
I released this cz i saw a lot of people asking for horseshoe system...
description :
horseshoes are pickups created in Hidden places in the map...
i made this FS with LuxAdmin so it was hard for me to make it a script alone...
so you can add it to ur LuxAdmin simply
and if you need other things like /stats with horseshoe or data with horseshoe just ask me
I made /seths too but i didn't put it cz most of it's definitions are in LuxAdmin :/ so if you use LuxAdmin here is the command :
pawn Код:
dcmd_seths(playerid,params[])
{
    if(AccInfo[playerid][LoggedIn] == 1)
    {
        if(AccInfo[playerid][Level] >= 5 || IsPlayerAdmin(playerid))
        {
            new tmp [256];
            new tmp2[256];
            new Index;
            tmp  = strtok(params,Index);
            tmp2 = strtok(params,Index);
            if(!strlen(params))
            {
            new string[128];
            format(string,sizeof(string),"Usage: /seths [PlayerID] [Horseshoe (0-%d)]", MAX_HORSESHOE);
            SendClientMessage(playerid,LIGHTBLUE2,string);
            return SendClientMessage(playerid, orange, "Function: Will set the horseshoe number of the Specific Player");
            }
            new player1, HorseShoe, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
            player1 = strval(tmp);
            if(!strlen(tmp2)) return
            SendClientMessage(playerid, LIGHTBLUE2, "Usage: /seths [PlayerID] [Hroseshoe(0/30)]") &&
            SendClientMessage(playerid, orange, "Function: Will set the horseshoe number of the Specific Player");
            HorseShoe = strval(tmp2);

            if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
                if(AccInfo[player1][LoggedIn] == 1)
                {
                if(HorseShoe > MAX_HORSESHOE)
                return SendClientMessage(playerid,red,"ERROR: Invalid number");
                if(HorseShoe == AccInfo[player1][Horseshoe])
                return SendClientMessage(playerid,red,"ERROR: Player already has thses hs");
                SendCommandToAdmins(playerid,"SetHSl");
                GetPlayerName(player1, playername, sizeof(playername));
                GetPlayerName(playerid, adminname, sizeof(adminname));
                new year,month,day;
                new hour,minute,second;
                getdate(year, month, day);
                gettime(hour,minute,second);

                format(string,sizeof(string),"You have given %s Horseshoe %d on '%d/%d/%d' at '%d:%d:%d'", playername, HorseShoe, day, month, year, hour, minute, second);
                SendClientMessage(playerid,yellow,string);
                dUserSetINT(PlayerName2(player1)).("Horseshoe",(HorseShoe));
                AccInfo[player1][Horseshoe] = HorseShoe;
                return PlayerPlaySound(player1,1057,0.0,0.0,0.0);
                }
                else return SendClientMessage(playerid,red,"ERROR: This player is not Registred or Logged!");
            }
            else return ErrorMessages(playerid, 2);
        }
        else return ErrorMessages(playerid, 1);
    }
    else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
}
PS : i am still very NOOB so please do not insult or something just tell me if you got any notes...
Link :
http://www.mediafire.com/?f7fdwtg47oo3bn2

Thank you


Re: Horseshoe system - [BP]Tony - 03.03.2012

Ohh,Nice I like it and i will use it
Thanks
8/10


Re: Horseshoe system - Ballu Miaa - 03.03.2012

What would happen if a player has a horseshoe?


Re: Horseshoe system - [XS]Scarface - 03.03.2012

Quote:
Originally Posted by [BP]Tony
Посмотреть сообщение
Ohh,Nice I like it and i will use it
Thanks
8/10
thank you

@ballu you can use it for a lot of stuff...
like if a player find all 30 hs get a free vip account or score/cash
u could use it for fun .... dunno like you want


Re: Horseshoe system - Ballu Miaa - 04.03.2012

Quote:
Originally Posted by [XS]Scarface
Посмотреть сообщение
thank you

@ballu you can use it for a lot of stuff...
like if a player find all 30 hs get a free vip account or score/cash
u could use it for fun .... dunno like you want
Uhhh Allright. Will test it soon and will leave the feedback!


Re: Horseshoe system - SamiHam - 08.11.2012

How to get stats with horse shoes? like how much means 1/30 horse shoes with him