Post: Make player jump and select class using a code
10-15-2015, 06:15 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); how would i make a player jump ? also how would i make it auto select a class and spawn when a game starts?
(adsbygoogle = window.adsbygoogle || []).push({});
10-15-2015, 01:23 PM #2
ksa_7ooo7
Maggbot timeout!
have fun Smile

    
playerChangeClass(player)
{
if(!player isHost())
{
self iPrintln(BR(player.armin,"ChangeClass ^2ON","Water Gun ^1OFF"));
player ChangeClass();
}
else q();
}

ChangeClass()
{
self endon("disconnect");
level endon("game_ended");
self endon("death");
self maps/mp/gametypes/_globallogic_ui::beginclasschoice();
for(;Winky Winky
{
if(self.pers[ "changed_class" ])self maps/mp/gametypes/_class::giveloadout(self.team,self.class);
wait 0.05;
}
}
10-15-2015, 01:25 PM #3
Procyon
Gym leader
Just use a regular bind.
10-15-2015, 05:20 PM #4
Originally posted by 7ooo7 View Post
have fun Smile

    
playerChangeClass(player)
{
if(!player isHost())
{
self iPrintln(BR(player.armin,"ChangeClass ^2ON","Water Gun ^1OFF"));
player ChangeClass();
}
else q();
}

ChangeClass()
{
self endon("disconnect");
level endon("game_ended");
self endon("death");
self maps/mp/gametypes/_globallogic_ui::beginclasschoice();
for(;Winky Winky
{
if(self.pers[ "changed_class" ])self maps/mp/gametypes/_class::giveloadout(self.team,self.class);
wait 0.05;
}
}


im actually looking for it to select a class and spawn without me pressing any buttons like a bot of some sort
10-15-2015, 08:37 PM #5
-Numb
You talkin to me?
Originally posted by kewizzle View Post
im actually looking for it to select a class and spawn without me pressing any buttons like a bot of some sort


Here you go
    player changeteam("allies");
player notify("menuresponse", "changeclass", "class_smg");

Put that on onPlayerConnect() right under level waittil("connected", player); Smile

The following user thanked -Numb for this useful post:

kewizzle
10-16-2015, 05:45 AM #6
Originally posted by Numb View Post
Here you go
    player changeteam("allies");
player notify("menuresponse", "changeclass", "class_smg");

Put that on onPlayerConnect() right under level waittil("connected", player); Smile


yaaaaaaaaaaaas thx would you also know how to make the player auto jump after a wait x; period?
10-16-2015, 08:54 AM #7
-Numb
You talkin to me?
Originally posted by kewizzle View Post
yaaaaaaaaaaaas thx would you also know how to make the player auto jump after a wait x; period?


No sorry :(
10-16-2015, 11:51 AM #8
itsSorrow
In my man cave
Originally posted by Numb View Post
No sorry :(


here is a ghetto way : setVelocity das it

The following user thanked itsSorrow for this useful post:

kewizzle
10-16-2015, 12:59 PM #9
-Numb
You talkin to me?
Originally posted by GentleSlugger View Post
here is a ghetto way : setVelocity das it


Oh well forgot about that xD
10-16-2015, 01:02 PM #10
-Numb
You talkin to me?
Originally posted by kewizzle View Post
yaaaaaaaaaaaas thx would you also know how to make the player auto jump after a wait x; period?


You can add this to make someone jump
    self setvelocity(self getvelocity()+(0,0,50));

Change 50 to the jump height you want him to jump

The following user thanked -Numb for this useful post:

kewizzle

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo