-
Content Count
205 -
Donations
0.00 EUR -
Joined
-
Last visited
Posts posted by Lossy
-
-
try this one - https://github.com/Lossyxx/CoD4X17a_testing I'm not sure if this was the last update for 17a though since ninja removed the original github page for it.
-
You'll have to modify the sources for it to happen.
@chronic read his topic correctly, he's not on about CoD4X built in admin system.
-
because it's not my server
-
8 hours ago, NinjaWa said:HAHA saying it's easy but make it.
well it is easy to make lol
-
7 hours ago, NinjaWa said:I think that they would but they have better things to do I guess.
You should look up fourdeltaone or AlterIWnet then. They won't ignore something like this if it gets big.
-
old script that was made on openwarfare forums, can probably see if i can find it. this one has been edited to work with 3xp scripts.
-
the for(; will constantly loop it for no reason, the while script will loop so long as the use button is pressed so it's not a 1 time pressed thing.
-
HEHEHEHHEHEHE >: DNinja's here
I think we all forgot about for(;
so yeah basically add a
for(;
{
}
wait .5;
inside the script and it should work (Don't forget to make a endon )
there a while statement but k
-
if you're forcing gsc scripts on a player you never need to change sv_cheats to 1...
-
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?
-
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?
-
he's too lazy to do it himself so he's not doing it anymore.
-
oh man......... never mind no one here can fix this "debug" message, not even ninja.
answer to your second question, no one knows why you have it because you have custom scripts that none of us have the code to.
-
to your problem, what else?
-
then we can't magically fix it unless we see the code.
-
Then 2537 is the latest version NNJ has gave out and instead of calling developers names because you can't do it, why don't you learn how to do it?
-
if you're paying for cod4 stuff you're getting ripped off :')
and ingre learn to read please, i tried to help you and you just completely ignore me.
-
If your using his build 2537 i would not advise to use it since it's buggy and will crash your server.
But i doubt he'll see this topic since he hasn't logged in for over a month to this website.
-
Turn on developer to see script error also the endon shouldn't be a in loop and try adding a wait statement in the loop.
-
Self = player entity by default in CoD4.
Self waittill will happen when a player activates event, level is when anything activates the event i believe as it's a global trigger.
The endon there so the script stops looping. If a script continues to loop when a player not there it willl give of errors such as "undefined" which means it can't find who "self" is in this case because he has left. So yes this will end the script when player disconnects if the code has been activated.
It also helps you end scripts on certain events e.g if you have something following a player but you don't want it to follow him when he dies or join spectators you'd add endon ("death"); or endon ("joined_spectators"); or you can do both to be sure. You can find these events like "death", "disconnect", "spawned" etc.. in the mod.ff or for stock cod4 you'd find them in the globallogic.gsc.
More info: http://wiki.modsrepository.com/index.php?title=Notify_/_Endon_/_Waittill
If you want to get into a read coding language GSC isn't really the best option since it's more of a game script language not a proper language like python, java, C/C++ etc..
-
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");
}
}
} -
what's .menu?Hi Lossy, .menu files are files that are executed ingame and them are used to get on a menu, don't confuse them with .inc files.
what are .inc files and could you explain a bit more on the menu part
Fisher reacted to this -
what's .menu?
-
You can gather what perks people are using in the _class.gsc and change it to "specialty_null" if they have certain perks equippted.
It has all the perk names in there and examples of how to detect the perks on players.
ProMod 220 ReModing [HELP NEEDED]
in Call of Duty
Posted · Report reply
language is called GSC, that's why the file type is GSC.