[FilterScript] Horseshoe system
#1

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
Reply


Messages In This Thread
Horseshoe system - by [XS]Scarface - 03.03.2012, 12:35
Re: Horseshoe system - by [BP]Tony - 03.03.2012, 13:17
Re: Horseshoe system - by Ballu Miaa - 03.03.2012, 13:22
Re: Horseshoe system - by [XS]Scarface - 03.03.2012, 13:51
Re: Horseshoe system - by Ballu Miaa - 04.03.2012, 05:21
Re: Horseshoe system - by SamiHam - 08.11.2012, 12:27

Forum Jump:


Users browsing this thread: 1 Guest(s)