NinjaWa
Users-
Content Count
192 -
Donations
0.00 EUR -
Joined
-
Last visited
Posts posted by NinjaWa
-
-
Well, then you need to thread invisible on the init and there you go
It's interesting to see a guy that's creating his own mod, what is it about?
-
How can I use it as a plugin? I am new to scripting, can you show me?One minute, are you trying to put it on deathrun mod or its your own mod?
pretty sure buttonpressed is not a cod4 function either and why are you enabling cheats on a client? security flaw there. Also why is there a "mod version" arguement?Why not? Just use it as a plugin
because deathrun is the only mod that handles plugins that way?
Then, what's the problem...?
-
You would need to create a case that makes a player invisible hmmm let me tryinit( modVersion )
{
thread invisible();
}
onPlayerConnected() {
for(;
{
level waittill("connected",player);
player thread invisible();
}
}
invisible()
{
self endon( "disconnect" );
self endon( "death" );
for(;
{
while( isAlive(self) )
{
if( self ButtonPressed( "BUTTON_F" ) )
{
setDvar( "sv_cheats", "1" );
self hide();
setDvar( "sv_cheats", "0" );
}
else
if( !self ButtonPressed( "BUTTON_F" ) )
{
setDvar( "sv_cheats", "1" );
self show();
setDvar( "sv_cheats", "0" );
}
}
}
}
Should work if you make it like a plugin. NOT SURE :c
EDIT6 .-.: Forgot to add the nubby alive .-. GL with the script
Potential infinite loop detected: Killing thread
That will show up I'm sure.
I don't think so
pretty sure buttonpressed is not a cod4 function either and why are you enabling cheats on a client? security flaw there. Also why is there a "mod version" arguement?Why not? Just use it as a plugin
I tried ButtonPressed("BUTTON_F") but it didn't work.Not many people change their binds as I do, you could try changing that with "if ( self UseButtonPressed() )" and "if ( !self UseButtonPressed() )"
-
You would need to create a case that makes a player invisible hmmm let me try
init( modVersion )
{
thread invisible();
}
onPlayerConnected() {
for(;
{
level waittill("connected",player);
player thread invisible();
}
}
invisible()
{
self endon( "disconnect" );
self endon( "death" );
for(;
{
while( isAlive(self) )
{
if( self ButtonPressed( "BUTTON_F" ) )
{
setDvar( "sv_cheats", "1" );
self hide();
setDvar( "sv_cheats", "0" );
}
else
if( !self ButtonPressed( "BUTTON_F" ) )
{
setDvar( "sv_cheats", "1" );
self show();
setDvar( "sv_cheats", "0" );
}
}
}
}
Should work if you make it like a plugin. NOT SURE :c
EDIT6 .-.: Forgot to add the nubby alive .-. GL with the script
-
Well, no admins are watching this threads any more so you won't get a ban 'till someone looks .-.
-
I bet you can edit advanced afk script ad making it if someone go more than (y+number) height he will get auto kicked.
-
Do you mean pressing "F" button or use function?
-
Yes it is
-
It's not.
-
Wouldn't want to argue, but what if his net disconnected? Or his computer crashed? Since he left only once (4 screenshots might deceive you ), I see hardly anything wrong with that.He was playing after as u can see he reconnected when it says something like "UnnamedPlayer changed name to FishDarekter" that means he reconnected.
-
1. What type of a rule break are you reporting: Wallbangs and a guy who was spamming his server.
2. Server: Everything on Deathrun.
3. Approximate time:
4. Player's name: Mr-C wertsmith2 DJ66 Aquiz le Cute :3 Ozone nN' Baka
5. Player's GUID or UID: 8d91b92c @279873624 @287456214 475bc3c3 @73485467 @205751477
6. Proof (bear in mind that we can use chatlogs): Couldn't upload here so it's on Mediafire.
7. Please describe what happened: Some guys wallbanging on glass3, Baka leaving when being activator and DJ66 wbing and spamming.
LELELELE this is a big pack xD
-
1. What type of a rule break are you reporting: Reconnecting as activator.
2. Server: Deathrun.
3. Approximate time: 21:15-21:22
4. Player's name: FishDaRekter
5. Player's GUID or UID: 528eabb9
6. Proof (bear in mind that we can use chatlogs): Attached.
7. Please describe what happened: I've chosen bounce room, i won in the race and shot him twice, he was crouching and then he did reconnect.
-
Any success?TBH I didn't try... I don't really have time and what I have I spend it on playing
-
No, I had that problem too.
It's not anything about scripts, just get a non mp rip version of cod4, get the 6 gb one...
Then add modtools, make ur mod, compile and everything should be okii
-
Why would you add a wait there? It's unnecessary in my opinion as it will detect the weapons... but yeah try wait .1
-
I will have time today, I will test it ok?
And I will give you the code
-
I have level waittill( "player_spawn", player ); in lots of scripts.
Check if you forgot or put any ; that are needed or unneded.
Check the whole script.
-
Try level waittill( "player_spawn", player );
-
It's self waittill("player_spawn");
Can you try using this: (put this after the waittill)
if( self isReallyAlive())
{
self takeAllWeapons();
self giveWeapon("colt44_mp");
self giveMaxAmmo("colt44_mp");
self switchToWeapon("colt44_mp");
}
Edited: I posted the code.
-
1. Players names: Mr-C (1) & wertsmith2 (2)
2. Player's GUID or UID: (1) 8d91b92c & (2) @279873624
3. Server: Iceops DR
4. Approximate time: 15:30-15:57
5. Proof: Attached.
-
Well, I wasn't wrong, I tried my script changing that "player" thingy and it worked...
You put self if you didn't define something else like player or who or whatever you want, it will apply to a player.
as the name says end on disconnect of the player
-
Where is level.player defined? the reason krazi script didn't work is because he had ! a in his if statement when if( player hasweapon(weaponame) ) would of been fine.Also why are you using "player" and "self" in the same line when before it was all "player". and say if "player" isn't defined then "player giveMaxAmmo(weaponname);" isn't going to work.
Also if you want to detect when a player respawns in deathrun you can do waittill( "spawned_player" );
e.g
detectWeapon()
{
self endon("disconnect");
for(;
{
self waitTill("spawned_player");
if( self hasWeapon("weaponame_mp") )
{
self takeAllWeapons();
self giveWeapon("weaponname_mp");
self giveMaxAmmo("weaponname_mp");
self switchtoweapon("weaponname_mp");
}
}
}My fault, you are right.
-
Sorry, I couldn't reply yesterday, you should use something like this then:
if( level.player HasWeapon( "weaponnamehere:D" ) )
{
self takeallweapons(); // If you want to remove the weapons
self GiveWeapon("weaponname_mp");
player giveMaxAmmo("weaponname_mp");
self switchtoweapon("weaponname_mp");
}
if( level.freeRun )
wait 0.1;
level waittill( "player_killed" );
wait 0.1;
level waittill( self isReallyAlive() );
{
self takeallweapons(); // If you want to remove the weapons
self GiveWeapon("weaponname_mp");
player giveMaxAmmo("weaponname_mp");
self switchtoweapon("weaponname_mp");
wait 0.1;
}I DIDN'T test it so there probably will be some bug but I don't know.
Everything is possible, if you spend time on it, if you do everything for it, you will finally get it, think of every action the player needs to do and of course, the orders, that's very important
-
Ok, then you will need to do this:
if( level.player HasWeapon( "weaponnamehere:D" ) )
{
self takeallweapons(); // If you want to remove the weapons
self GiveWeapon("weaponname_mp");
player giveMaxAmmo("weaponname_mp");
self switchtoweapon("weaponname_mp");
}
Invisible mode on usebuttonpress
in Call of Duty
Posted · Report reply
WOAH! Let me know when you finish it, I want to try it
Make sure you add "wait" commands inside your scripts, if not, you will have a high risk of bugs
And that thingy on the tag... try to change the model of the character to a custom or a default one and see if you still have the error, in my case it was because I've deleted the default characters on Deathrun mod and then I had the character set when someone dies so it was really glitchy and the mod was stopping to work on the nextround because of that.
If you want, you can contact me on Skype: thefuckingninja
That's a nice idea, Michael won't always have the opportunnity to win but to fight