just going to post some code and see what you guys think
Save Position etc..
Code: Select all
while(1)
{
if(self MeleeButtonPressed()) //v
self.savedposition = self.origin;//Saves current position
self iPrintln("^2Position ^5Saved");
}
while(1)
{
if(self UseButtonPressed())//F
self moveto(self.savedposition);// loads last saved position
self iPrintln("^2Position ^5Loaded");
}
while(1)
{
if(self ActionSlotOneButtonPressed())//X
self suicide();//suicide!
self iPrintln("^2You Killed ^5Yourself ^5HAHA EMO!");
}
Players class etc
Code: Select all
Team1()
{
self takeAllWeapons();
self ClearPerks();
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Lets Jump :D");
/*cz75dw_mp*/
self giveWeapon( "cz75dw_mp", 0, false );
self switchToWeapon("cz75dw_mp");
self setPerk("specialty_movefaster specialty_fallheight");
self setPerk("specialty_longersprint specialty_unlimitedsprint");
self setPerk("specialty_holdbreath specialty_fastweaponswitch");
self setPerk("specialty_twoattach specialty_twogrenades");
self setPerk("perk_sleight_of_hand_pro - specialty_fastreload specialty_fastads");
self setPerk("specialty_bulletaccuracy specialty_sprintrecovery specialty_fastmeleerecovery");
self.maxhealth = 99999;
self.health = 99999;
self setClientDvar("cg_nopredict", 0);
self setClientDvar("cg_fov", 80);
self setClientDvar("cg_fovscale", 1.125);
self setClientDvar("r_specularcolorscale", 0);
self setClientDvar("r_dlightLimit", 0);
self setClientDvar("sm_enable", 0);
self setClientDvar("r_desaturation", 0);
self setClientDvar("r_zfeather", 0);
self setClientDvar("r_smc_enable", 0);
self setClientDvar("r_distortion", 0);
self setClientDvar("r_fog", 0);
setDvar("bg_viewBobMax", 0);
setDvar("bg_weaponBobMax", 0);
setDvar("player_sprintCameraBob", 0);
setDvar("sv_cheats", 1);
setDvar(Jump_height, 200);
self setClientDvar("cg_drawFPSOnly", 1);
}
Bleh haven't tested it so don't no if i have made any noob mistakes and got a error
Hope you like