Post: Am I right?
12-30-2010, 09:09 PM #1
Shieldsy
I <3 Feeder.
(adsbygoogle = window.adsbygoogle || []).push({});
    MonitorLeft(){
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("dpad_left","+actionslot 3");
for(;Winky Winky{
self waittill("dpad_left");
self thread maps\mp\moss\MossysFunctions :: toggleMakeGod();
}}


Ok so I am learning to code and make patches, so i need to learn what the code means. So, please be patient with me, amd I right with what I am saying here...

MonitorLeft - the thread name?
Self endon disconnect, self endon death - when this action ends
self notifyOnPlayerCommand - Not entirely sure tbh
self waittill - Wait till the player does that action stated
self thread maps\mp\moss\MossyFunctions - Where the MakeGod thread is?

Thanks for the help Happy

P.s. I am not actually trying to use this code, I just copied it from Chrom3's thread because it got me thinking Smile
(adsbygoogle = window.adsbygoogle || []).push({});
12-31-2010, 01:01 AM #11
Shieldsy
I <3 Feeder.
Originally posted by chr0m3playa View Post
That way it knows your initializing a thread.
You would use self.DoGod if you were talking about a state of being

For example, a typical God Mode thread starts off like this:
    doGod()
self.GodMode = 1;


Then, in the onPlayerSpawned, you would have this:

    self.GodMode = 0;


But if you did it that way would it not constantly be on?
12-31-2010, 01:25 AM #12
Chrome Playa
Chrome Gaming Reloaded
Originally posted by DarloDude9 View Post
But if you did it that way would it not constantly be on?


You dont have to include the self.GodMode = 0
That is only if you are going to add a toggle God Mode

If you just want god mode when you spawn then you would do

    OnPlayerSpawned()
{
self thread doGodMode();

The following user thanked Chrome Playa for this useful post:

Shieldsy
12-31-2010, 02:14 AM #13
Shieldsy
I <3 Feeder.
Originally posted by chr0m3playa View Post
You dont have to include the self.GodMode = 0
That is only if you are going to add a toggle God Mode

If you just want god mode when you spawn then you would do

    OnPlayerSpawned()
{
self thread doGodMode();


So when would I use self.DoGodMode() again?
12-31-2010, 02:43 AM #14
Chrome Playa
Chrome Gaming Reloaded
No just use self thread DoGodMode

The following user thanked Chrome Playa for this useful post:

Shieldsy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo