[FilterScript] DBind System - Key Binder
#1

DBind



Pastebin : http://pastebin.com/vRmTy8yy

*******: [ame]http://www.youtube.com/watch?v=lamiELMGTSk[/ame]

How to Create Command?



1.Find Function:
HTML Code:
new Commands[][] =
{
      "{FF0000}Unbind",
      "{04C731}Zinute",
      "{04C731}GautiHP",
      "{04C731}GautiArmor"
};
And Add which you want Like : Teleportas

It should look like
HTML Code:
new Commands[][] =
{
      "{FF0000}Unbind",
      "{04C731}Zinute",
      "{04C731}GautiHP",
      "{04C731}GautiArmor",
      "{04C731}Teleportas"
};
{04C731} - Green Color

{FF0000} - Red Color



2. Find Stocks. Last One is
HTML Code:
stock GautiArmor(playerid)
{
    SetPlayerArmour(playerid,100.0);
    SendClientMessage(playerid,123456,"Gavote 100 ARMOUR");
}
Under it we add this:
HTML Code:
stock Teleportas(playerid)
{
    SetPlayerPos(Playerid,x,y,z); // pasikeiskite x,y,z i savo kordinates
}

3.Find Fuction:
HTML Code:
stock ZaidejoKomandos(playerid,key,key1[40])
{
    switch(pKey[playerid][key])
    {
        case 0: key1 = "{FF0000} NEPASIRINKTA";
        case 1: key1 = "{04C731}Zinute";
        case 2: key1 = "{04C731}GautiHP";
        case 3: key1 = "{04C731}GautiArmor";
    }
    return key1;
}
and replace with:
HTML Code:
stock ZaidejoKomandos(playerid,key,key1[40])
{
    switch(pKey[playerid][key])
    {
        case 0: key1 = "{FF0000} NEPASIRINKTA";
        case 1: key1 = "{04C731}Zinute";
        case 2: key1 = "{04C731}GautiHP";
        case 3: key1 = "{04C731}GautiArmor";
        case 4: key1 = "{04C731}Teleportas";
    }
    return key1;
}
4. Find
HTML Code:
stock CommandUse(playerid,key)
{
    switch(pKey[playerid][key])
    {
        case 1: Zinute(playerid);
        case 2: GautiHP(playerid);
        case 3: GautiArmor(playerid);
    }
}
Replace with
HTML Code:
stock CommandUse(playerid,key)
{
    switch(pKey[playerid][key])
    {
        case 1: Zinute(playerid);
        case 2: GautiHP(playerid);
        case 3: GautiArmor(playerid);
        case 4: Teleportas(playerid);
    }
}

5. Create "Bind" Folder in you scriptfiles folder



Thanks Subscribe and Like. I`m waiting Comments )
Reply


Messages In This Thread
DBind System - Key Binder - by DreDasLT - 02.02.2013, 16:54
Re: DBind System - Key Binder - by DSQLXPRT - 02.02.2013, 16:57
Re: DBind System - Key Binder - by DreDasLT - 02.02.2013, 17:00
Re: DBind System - Key Binder - by Alvon - 03.02.2013, 10:52
Re: DBind System - Key Binder - by DreDasLT - 03.02.2013, 14:41
Re: DBind System - Key Binder - by hustrine - 08.02.2013, 08:07
Re: DBind System - Key Binder - by DreDasLT - 14.02.2013, 18:12
Re: DBind System - Key Binder - by EdvinasStudio - 05.03.2013, 18:35
Re: DBind System - Key Binder - by DreDasLT - 05.03.2013, 18:41
Re: DBind System - Key Binder - by moustafa0550 - 01.09.2013, 00:15
Re: DBind System - Key Binder - by DreDasLT - 02.09.2013, 06:18
Re: DBind System - Key Binder - by DreDasLT - 22.09.2013, 15:25
Re: DBind System - Key Binder - by x96664 - 22.09.2013, 19:08
Re: DBind System - Key Binder - by DreDasLT - 26.11.2013, 19:48
Re: DBind System - Key Binder - by Joksa - 26.11.2013, 21:05
Re: DBind System - Key Binder - by DreDasLT - 11.08.2014, 13:18

Forum Jump:


Users browsing this thread: 4 Guest(s)