illestiraqi Posted August 22, 2013 Share Posted August 22, 2013 I was trying to find a swat vest txd file from my latest post of requesting help, viewtopic.php?f=91&t=63598 It didnt turn out well but here I got some good information, while I was trying to find, I found one on SA:MP and I need it in MTA scripting form, was hoping I couldve gotten help converting it or making it for me on MTA form. SA:MP Scripting: #include #define COLOR_INTERFACE_BODY 0xFDE39DAA public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/equip", true, 6) == 0) { if(GetPVarInt(playerid, "Equipped") != 0) return SendClientMessage(playerid, COLOR_INTERFACE_BODY, "You are already equipped!"); if(GetPlayerSkin(playerid) < 280 || GetPlayerSkin(playerid) > 288) return SendClientMessage(playerid, COLOR_INTERFACE_BODY, "This command is available only to the servants of the law."); SetPlayerAttachedObject(playerid, 1, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0); SetPlayerAttachedObject(playerid, 2, 19141, 2, 0.11, 0.0, 0.0, 0.0, 0.0, 0.0); SetPlayerAttachedObject(playerid, 3, 18637, 13, 0.35, 0.0, 0.0, 0.0, 0.0, 180.0); SetPlayerAttachedObject(playerid, 4, 18642, 7, 0.1, 0.0, -0.11, 0.0, -90.0, 90.0); GivePlayerWeapon(playerid, 3, 1); SetPlayerArmour(playerid, 100.0); SetPVarInt(playerid, "Equipped", 1); SendClientMessage(playerid, COLOR_INTERFACE_BODY, "You outfits."); return 1; } if(strcmp(cmdtext, "/equipoff", true, 9) == 0) { if(GetPVarInt(playerid, "Equipped") != 1) return SendClientMessage(playerid, COLOR_INTERFACE_BODY, "You already unequipped!"); new Float:ap; GetPlayerArmour(playerid, ap); if(ap > 0) { RemovePlayerAttachedObject(playerid, 1); SetPlayerArmour(playerid, 0.0); } RemovePlayerAttachedObject(playerid, 2); RemovePlayerAttachedObject(playerid, 3); RemovePlayerAttachedObject(playerid, 4); new weapons[13][2]; for (new i; i < 13; i++) { GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]); } ResetPlayerWeapons(playerid); for (new i; i < 13; i++) { if(i == 1) continue; GivePlayerWeapon(playerid, weapons[i][0], weapons[i][1]); } SetPVarInt(playerid, "Equipped", 0); SendClientMessage(playerid, COLOR_INTERFACE_BODY, "You undressed and disarmed."); return 1; } return 0; } public OnPlayerUpdate(playerid) { if(GetPVarInt(playerid, "Equipped") == 1) { RemovePlayerAttachedObject(playerid, 1); new Float:ap; GetPlayerArmour(playerid, ap); if(ap > 0) SetPlayerAttachedObject(playerid, 1, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0); } return 1; } public OnFilterScriptExit() { for(new i, j = GetMaxPlayers(); i != j; i++) { if(!IsPlayerConnected(i)) continue; if(IsPlayerNPC(i)) continue; if(GetPVarInt(playerid, "Equipped") != 1) continue; RemovePlayerAttachedObject(i, 1); RemovePlayerAttachedObject(i, 2); RemovePlayerAttachedObject(i, 3); RemovePlayerAttachedObject(i, 4); } return 1; } I understand this cant just be "converted" so maybe anyone could've looked at the SA:MP one and maybe see what they need etc... I beg anyone for this, I can only offer maybe 1$ or 2$, please! Link to comment
RainBow Posted August 22, 2013 Share Posted August 22, 2013 What exactly are you trying to do? cause I'm not really getting why this might be any use to you heh, as it would be easier to just create a new code just like this. Link to comment
illestiraqi Posted August 22, 2013 Author Share Posted August 22, 2013 What exactly are you trying to do? cause I'm not really getting why this might be any use to you heh, as it would be easier to just create a new code just like this. In the image... You see a normal Army Skin, added a SWAT Vest/Kevlar to it... Link to comment
InVision Posted August 22, 2013 Share Posted August 22, 2013 This require Bone Attachment functions. Link to comment
illestiraqi Posted August 22, 2013 Author Share Posted August 22, 2013 I can only offer maybe 1$ or 2$, please! This require Bone Attachment functions. I understand and since I dont know how to script... willing to pay 1 or 2 $ Link to comment
illestiraqi Posted August 26, 2013 Author Share Posted August 26, 2013 Please help me, I will pay 2$ If I get help please!!!!! Link to comment
WASSIm. Posted August 26, 2013 Share Posted August 26, 2013 can help mta scripts only Link to comment
illestiraqi Posted August 27, 2013 Author Share Posted August 27, 2013 can help mta scripts only I am requesting an MTA script, just showing the SA:MP one for example and to see what they got etc. Link to comment
Blaawee Posted August 27, 2013 Share Posted August 27, 2013 Well, I can help for free But, I don't know what are you trying to do. Link to comment
illestiraqi Posted August 27, 2013 Author Share Posted August 27, 2013 Well, I can help for free But, I don't know what are you trying to do. You can see in this picture that the skin of the female is wearing a SWAT vest on her skin. Thats what am trying to get. This using bone attachments but I don't know any scripting anyone help? Link to comment
xXMADEXx Posted August 27, 2013 Share Posted August 27, 2013 Most of us are only Lua scripters, therefore people like me only know Lua and don't understand anything from the SA:MP code. Link to comment
illestiraqi Posted August 27, 2013 Author Share Posted August 27, 2013 Most of us are only Lua scripters, therefore people like me only know Lua and don't understand anything from the SA:MP code. Once again, I put the SA:MP code to show you what it looks like, I need it into MTA code! EDIT: Also I got a picture from SA:MP because no one from MTA has/uses this code + It's easy to do as friends told me but we dont know scripting so I am asking. Link to comment
illestiraqi Posted August 29, 2013 Author Share Posted August 29, 2013 This script is still required please. Link to comment
manawydan Posted August 29, 2013 Share Posted August 29, 2013 https://community.multitheftauto.com/in ... ls&id=2540 Link to comment
illestiraqi Posted August 29, 2013 Author Share Posted August 29, 2013 https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540 and where do I use this, on my server or map editor? I dont understand. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now