02.02.2013, 16:54
(
Last edited by DreDasLT; 02/02/2013 at 05:41 PM.
)
DBind
Pastebin : http://pastebin.com/vRmTy8yy
*******: [ame]http://www.youtube.com/watch?v=lamiELMGTSk[/ame]
How to Create Command?
1.Find Function:
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
It should look like
HTML Code:
new Commands[][] = { "{FF0000}Unbind", "{04C731}Zinute", "{04C731}GautiHP", "{04C731}GautiArmor", "{04C731}Teleportas" };
{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 )
Thanks Subscribe and Like. I`m waiting Comments )