Post: Few shortend functions!
06-17-2012, 03:49 PM #1
TOM DAINTY
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({});
Some people may find this helpful & some people may not, but I'm posting it anyway. I use these in my patch as it saves space.

    
iP(T){self iPrintln(T);}
iPB(T){self iPrintlnBold(T);}
sD(a,b)(){self setClientDvar(a,b);iP(a+" set to "+b);}
Sounds(s){self playsound(s);}
Visions(v){visionSetNaked(v,1);}
Models(m){self setModel(m);iP("Model set to "+m);}
Weapons(w){self giveWeapon(w);iP(w+" given");}
doFX(a,b,c){PlayFX(a,b,c);}
doEnd(E){self endon(E);}
doNot(N){self notify(N);}


Examples of usage:
    
iP("www.youtube.com/Xx2EzYxX");
iPB("PSN: x2EzYx--");
sD("clanname","{Ez}");
Sounds("veh_mig29_mid_loop");
Visions("default");
Models("vehicle_mig29_desert");
Weapons("mp5_mp");
doFX("level.fx_airstrike_contrail",self,"tag_left_wingtip");
doEnd("death");
doNot("verified");


Groan/Flame if you like, I'm not bothered.. Only trying to help people. Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to TOM DAINTY for this useful post:

247Yamato, Raul Villaman
06-17-2012, 05:21 PM #2
Error:
doNot(N){self endon(N);}

Should be:
doNot(N){self notify(N);}
06-17-2012, 05:25 PM #3
TOM DAINTY
Do a barrel roll!
Originally posted by nZxMikeeeyx View Post
Error:
doNot(N){self endon(N);}

Should be:
doNot(N){self notify(N);}

thankyou for pointing that out I'll change now!
06-18-2012, 08:44 AM #4
LYFN
Banned
all looks good, another good thread from you Smile
06-18-2012, 12:20 PM #5
TOM DAINTY
Do a barrel roll!
Originally posted by LYFN View Post
all looks good, another good thread from you Smile


It's simple to do, but some people may not of known this. Just trying to help out Happy

The following 2 users say thank you to TOM DAINTY for this useful post:

LYFN, Raul Villaman
06-18-2012, 03:50 PM #6
Harry
Former Staff
someone of these are helpful, so thanks alot mate ^^ keep the good post's coming :love:
06-18-2012, 05:36 PM #7
247Yamato
< ^ > < ^ >
Some of them might be useful for menu options but in another use they could be a bit confusing for beginners, which are the ones who need help:

doFX(a,b,c){PlayFX(a,b,c);}

You would need to know what a, b and c mean.

The following user thanked 247Yamato for this useful post:

TOM DAINTY
06-18-2012, 05:49 PM #8
TOM DAINTY
Do a barrel roll!
Originally posted by 247Yamato View Post
Some of them might be useful for menu options but in another use they could be a bit confusing for beginners, which are the ones who need help:

doFX(a,b,c){PlayFX(a,b,c);}

You would need to know what a, b and c mean.

Good point! I may type up a tutorial later if I have the time or can be bothered.

The following user thanked TOM DAINTY for this useful post:

247Yamato

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo