Szevasztok! \ Készitettem egy fegyver lekérõ szkriptet!Használata:/fegyver [fegyóid] [golyó]El keszitési idõ:5perc!Itt a code://Fegyver lekérõ szkript!
#include <a_samp>
#include <zcmd>
#include <sscanf>
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\"Fegyver lekérõ szkript by:[sDW]BlackJack\");
print(\"--------------------------------------\\n\");
return 1;
}
CMD:fegyver(playerid)
{
new fegyo,golyo;
if(sscanf(params,\"Fegyver\",fegyo,golyo)) return SendClientMessage(playerid,0xFF0000FF,\"[Hasznalat]:/fegyver [Fegyoid][golyó]\");
if(fegyo < 1 || fegyo > 46) return SendClientMessage(playerid,0xFF0000FF,\"HIBA: Fegyver ID számok:1tol46-ig vannak!)\");
GivePlayerWeapon(playerid,fegyo,golyo);
SendClientMessage(playerid, 0xFF0000FF, \"Sikeresen adtál magadnak fegyot!\");
return 1;
}
Itt a Dialogos verzió code://Fegyver lekérõ NEW szkript!
#include <a_samp>
#include <zcmd>
#define Fegyver 100
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\"Fegyver lekérõ szkript NEW by:[sDW]BlackJack\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
CMD:fegyver(playerid)
{
ShowPlayerDialog(playerid, Fegyver, DIALOG_STYLE_LIST, \"Fegyverek!By:[sDW]BlackJack!\", \"Brass Knuckles\\nGolf Club\\nNightstick\\nKnife\\nBaseball Bat\\nShovel\\nPool Cue\\nKatana\\nChainsaw\\nDouble-ended Dildo\\nDildo\\nVibrator\\nSilver Vibrator\\nFlowers\\nCane\\nGrenade\\nTear Gas\\nMolotov Cocktail\\n9mm\\nSilenced 9mm\\nDesert Eagle\\nShotgun\\nSawnoff Shotgun\\nCombat Shotgun\\nMicro SMG/Uzi\\nMP5\\nAK-47\\nM4\\nTec-9\\nCountry Rifle\\nSniper Rifle\\nRPG\\nHS Rocket\\nFlamethrower\\nMinigun\", \"Vesz!\", \"Mégsem!\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Fegyver)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 1, 1);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 2, 1);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 3, 1);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 4, 1);
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 5, 1);
}
if(listitem == 5)
{
GivePlayerWeapon(playerid, 6, 1);
}
if(listitem == 6)
{
GivePlayerWeapon(playerid, 7, 1);
}
if(listitem == 7)
{
GivePlayerWeapon(playerid, 8, 1);
}
if(listitem ==
{
GivePlayerWeapon(playerid, 9, 1);
}
if(listitem == 9)
{
GivePlayerWeapon(playerid, 10, 1);
}
if(listitem == 10)
{
GivePlayerWeapon(playerid, 11, 1);
}
if(listitem == 11)
{
GivePlayerWeapon(playerid, 12, 1);
}
if(listitem == 12)
{
GivePlayerWeapon(playerid, 13, 1);
}
if(listitem == 13)
{
GivePlayerWeapon(playerid, 14, 1);
}
if(listitem == 14)
{
GivePlayerWeapon(playerid, 15, 1);
}
if(listitem == 15)
{
GivePlayerWeapon(playerid, 16, 9999);
}
if(listitem == 16)
{
GivePlayerWeapon(playerid, 17, 9999);
}
if(listitem == 17)
{
GivePlayerWeapon(playerid, 18, 9999);
}
if(listitem == 18)
{
GivePlayerWeapon(playerid, 22, 9999);
}
if(listitem == 19)
{
GivePlayerWeapon(playerid, 23, 9999);
}
if(listitem == 20)
{
GivePlayerWeapon(playerid, 24, 9999);
}
if(listitem == 21)
{
GivePlayerWeapon(playerid, 25, 9999);
}
if(listitem == 22)
{
GivePlayerWeapon(playerid, 26, 9999);
}
if(listitem == 23)
{
GivePlayerWeapon(playerid, 27, 9999);
}
if(listitem == 24)
{
GivePlayerWeapon(playerid, 28, 9999);
}
if(listitem == 25)
{
GivePlayerWeapon(playerid, 29, 9999);
}
if(listitem == 26)
{
GivePlayerWeapon(playerid, 30, 9999);
}
if(listitem == 27)
{
GivePlayerWeapon(playerid, 31, 9999);
}
if(listitem == 28)
{
GivePlayerWeapon(playerid, 32, 9999);
}
if(listitem == 29)
{
GivePlayerWeapon(playerid, 33, 9999);
}
if(listitem == 30)
{
GivePlayerWeapon(playerid, 34, 9999);
}
if(listitem == 31)
{
GivePlayerWeapon(playerid, 35, 9999);
}
if(listitem == 32)
{
GivePlayerWeapon(playerid, 36, 9999);
}
if(listitem == 33)
{
GivePlayerWeapon(playerid, 37, 9999);
}
if(listitem == 34)
{
GivePlayerWeapon(playerid, 38, 9999);
}
}
}
return 1;
}
Letöltése:http://www.solidfiles.com/d/a0376d8351/Használjátok egéségel!Kritikákat - Tippeket Várom!