Post: Giving Glowstick to self

03-31-2017, 06:53 AM #1
KazzyOFM
NextGenUpdate Elite
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys i was wondering if anyone knows how to give the glowstick without having a freeze problem
When i try to give myself a glowstick using*giveWeapon(client, "lightstick_mp", 0, 0, true, false); my menu just ends up freezing up any tips?
(adsbygoogle = window.adsbygoogle || []).push({});
04-05-2017, 09:20 AM #2
KazzyOFM
NextGenUpdate Elite
Anyone ?
04-06-2017, 01:53 PM #3
matrixmods
Pokemon Trainer
Originally posted by KazzyOFM View Post
Hey guys i was wondering if anyone knows how to give the glowstick without having a freeze problem
When i try to give myself a glowstick using*giveWeapon(client, "lightstick_mp", 0, 0, true, false); my menu just ends up freezing up any tips?


Definitely better ways to do this, but since you don't know how im sure this would make the most sense, assuming you know how to call gsc functions

    
//Use either a semtex or tactical insertion on your class
//Pretty sure PlayerCmd functions aren't needed, but its what worked for me
scr_entref_t client;
client.entnum = clientNum; client.classnum = 0;

Scr_AddString("semtex_mp");
Scr_SetNumParams(1);
PlayerCmd_takeWeapon(client);
Scr_ClearOutParams();

Scr_AddString("lightstick_mp");
Scr_SetNumParams(1);
PlayerCmd_giveWeapon(client);
Scr_ClearOutParams();

1 thanks
KazzyOFM
1 groan
user45353245
04-17-2017, 12:31 AM #4
KazzyOFM
NextGenUpdate Elite
Originally posted by matrixmods View Post
Definitely better ways to do this, but since you don't know how im sure this would make the most sense, assuming you know how to call gsc functions

    
//Use either a semtex or tactical insertion on your class
//Pretty sure PlayerCmd functions aren't needed, but its what worked for me
scr_entref_t client;
client.entnum = clientNum; client.classnum = 0;

Scr_AddString("semtex_mp");
Scr_SetNumParams(1);
PlayerCmd_takeWeapon(client);
Scr_ClearOutParams();

Scr_AddString("lightstick_mp");
Scr_SetNumParams(1);
PlayerCmd_giveWeapon(client);
Scr_ClearOutParams();



Thanks man

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo