Sh3llK0de

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Sh3llK0de

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. For some reason, the stock plugin didn't work for me. I had to recompile from source and that worked.
  2. Can you link the mod you are referencing please. Maybe I can assist.
  3. Yes. the only other way I can think of would be to set a universal cvar. You can experiment with that if you want. something like: setCvar("plrsettings_" + player getguid(), "fov&1;fullbright&1;") That method is complete speculation on my part, that needs to be tested.
  4. Ah, thank you. I figured this would be something protected since scripters can use it wrongly. Appreciate the info.
  5. Looking at the code, I can see that he did 2 things that we can use to determine that the player is operating the AGM or AC130. 1. He defines a level variable: level.flyingPlane. Which tells all scripts that someone is operating a plane. 2. The previously mentioned variable doesn't give who is operating the plane. We see that once someone calls AGM/AC130, they are given a massive health boost so that they aren't killed easily. They are given a max health of 120000 for the duration. We can use that info as such: #include maps\mp\_utility; #include maps\mp\gametypes\_hud_util; #include common_scripts\utility; AFK_Camp_Watcher() { level waittill( "prematch_over" ); self endon( "death" ); my_camp_time = 0; have_i_been_warned = false; max_distance = 240; camp_time = 20; while( 1 ) { old_position = self.origin; wait 1; new_position = self.origin; distance = distance2d( old_position, new_position ); if((distance > max_distance) || (isdefined(level.flyingPlane) && self.maxHealth == 120000)) { my_camp_time = 0; have_i_been_warned = false; } else { my_camp_time++; } if( my_camp_time == camp_time && !have_i_been_warned ) { self IprintLnBold("^7Stop ^1CAMP^7, noob!"); self IprintLnBold("^710 seconds to move!"); have_i_been_warned = true; } if( my_camp_time == ( camp_time + 10 ) && have_i_been_warned ) { self IprintLnBold("^7You will be moved to spectators for ^1Camping^7!"); wait 2; self.sessionteam = "spectator"; self.sessionstate = "spectator"; self [[level.spawnSpectator]](); iPrintln("^7" +self.name + " ^7was moved to spectators for ^1Camping^7!"); } } } This is untested and meant to give you an idea of what you can do.
  6. Hey all, I am familiar with addscriptcommand and how to work with commandhandler. I want to create a command for a player to add the server to their favorites list. Can someone tell me the exec line to achieve this? Thanks in advance.
  7. Because the player technically disconnects on each map load, you will end up with this. The only way would be to have a database with your players and save their preferences. Tbh, this has already been achieved gracefully. Look at this beauty and see what was done: https://github.com/leiizko/cod4_new_experience/blob/master/code/scriptcommands.gsx
  8. Seems like the error is not there if I use the precompiled server binary. Error appears when I compile the binary locally. Anyways, seems to be working. Thanks!
  9. Hey all, I have updated my client to the latest version. My server is running the latest version and I am getting a version mismatch error. I got the same error on another server but I was still able to play. On my server, it won't let me even connect. Anything I can do to ignore the error?