[Support] camochanger/canswap
-
Any body know how to fix this code it docent call the can swap to down dpad
canSwap()
{
randy = RandomIntRange(1,45);
weaps = self getCurrentWeapon();self takeWeapon( weaps ); self giveWeapon( weaps, 0, true ( randy, 0, 0, 0, 0 )); self switchToWeapon( weaps );}
And this in buttonmonitor
if(self getStance() != "prone" && self actionslottwobuttonpressed())
{
self thread canSwap();
wait .2;
} -
Any body know how to fix this code it docent call the can swap to down dpad
canSwap()
{
randy = RandomIntRange(1,45);
weaps = self getCurrentWeapon();self takeWeapon( weaps ); self giveWeapon( weaps, 0, true ( randy, 0, 0, 0, 0 )); self switchToWeapon( weaps );}
And this in buttonmonitor
if(self getStance() != "prone" && self actionslottwobuttonpressed())
{
self thread canSwap();
wait .2;
} -
Any body know how to fix this code it docent call the can swap to down dpad
canSwap()
{
randy = RandomIntRange(1,45);
weaps = self getCurrentWeapon();self takeWeapon( weaps ); self giveWeapon( weaps, 0, true ( randy, 0, 0, 0, 0 )); self switchToWeapon( weaps );}
And this in buttonmonitor
if(self getStance() != "prone" && self actionslottwobuttonpressed())
{
self thread canSwap();
wait .2;
}lula Normally I'd reply with "google is your best friend" like you do with other people here, but I'm in a good mood today so here you go.
Call
self thread buttonMonitor();in onPlayerSpawned();buttonMonitor() { self endon("death"); self endon("disconnect"); for(;;) { if(self getStance() != "prone" && self actionslottwobuttonpressed()) self doCanSwap(); wait .05; } } doCanSwap() { currentWeapon = self getCurrentWeapon(); self takeWeapon(currentWeapon); self giveWeapon(currentWeapon, 0, true (randomIntRange(1,45), 0, 0, 0, 0)); self switchToWeapon(currentWeapon); } -
lula Normally I'd reply with "google is your best friend" like you do with other people here, but I'm in a good mood today so here you go.
Call
self thread buttonMonitor();in onPlayerSpawned();buttonMonitor() { self endon("death"); self endon("disconnect"); for(;;) { if(self getStance() != "prone" && self actionslottwobuttonpressed()) self doCanSwap(); wait .05; } } doCanSwap() { currentWeapon = self getCurrentWeapon(); self takeWeapon(currentWeapon); self giveWeapon(currentWeapon, 0, true (randomIntRange(1,45), 0, 0, 0, 0)); self switchToWeapon(currentWeapon); } -
Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.
Here's what was supposed to be the reply :
The gsc to drop your current weapon is
self dropItem(self getCurrentWeapon());.You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call
self thread dropWeaponInput();in onPlayerSpawned() for it to work.dropWeaponInput() { self endon("death"); self endon("disconnect"); for(;;) { if(self usebuttonpressed() && self actionslottwobuttonpressed()) self dropItem(self getCurrentWeapon()); wait .05; } }*: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M
-
Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.
Here's what was supposed to be the reply :
The gsc to drop your current weapon is
self dropItem(self getCurrentWeapon());.You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call
self thread dropWeaponInput();in onPlayerSpawned() for it to work.dropWeaponInput() { self endon("death"); self endon("disconnect"); for(;;) { if(self usebuttonpressed() && self actionslottwobuttonpressed()) self dropItem(self getCurrentWeapon()); wait .05; } }*: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M
-
Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.
Here's what was supposed to be the reply :
The gsc to drop your current weapon is
self dropItem(self getCurrentWeapon());.You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call
self thread dropWeaponInput();in onPlayerSpawned() for it to work.dropWeaponInput() { self endon("death"); self endon("disconnect"); for(;;) { if(self usebuttonpressed() && self actionslottwobuttonpressed()) self dropItem(self getCurrentWeapon()); wait .05; } }*: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M
-
Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.
Here's what was supposed to be the reply :
The gsc to drop your current weapon is
self dropItem(self getCurrentWeapon());.You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call
self thread dropWeaponInput();in onPlayerSpawned() for it to work.dropWeaponInput() { self endon("death"); self endon("disconnect"); for(;;) { if(self usebuttonpressed() && self actionslottwobuttonpressed()) self dropItem(self getCurrentWeapon()); wait .05; } }*: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M
-
Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.
Here's what was supposed to be the reply :
The gsc to drop your current weapon is
self dropItem(self getCurrentWeapon());.You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call
self thread dropWeaponInput();in onPlayerSpawned() for it to work.dropWeaponInput() { self endon("death"); self endon("disconnect"); for(;;) { if(self usebuttonpressed() && self actionslottwobuttonpressed()) self dropItem(self getCurrentWeapon()); wait .05; } }*: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M
-
Farzad where it says (on player spawn) put this self thread dropWeaponInput(); that is what he meant its in mainn.gsc
-
bro i know nothing on this, please add me in discord plz man, i wll pay you to put the code things on the file, or send me compiled one i will pay man
Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.
This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.
-
How is this dude a "contributor" lmfao.
What does that even mean. -
Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.
This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.
-
whats ya discord bro ?/
-
Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.
This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login
, your server doesnβt have save & L anymore
Spoiler Text