Post: Help in GSC?
09-30-2014, 11:54 PM #1
Boliberrys
^^ Sexy ^^
(adsbygoogle = window.adsbygoogle || []).push({}); Hello guys, im creating a GSC with custom GameMode, and i want to know if someone can help me to make unable to press START(to change class). Because to play this Gamemode, players need a specific class, that will be given when they spawn.

Help please Happy
10-01-2014, 12:08 AM #2
Versed
Do a barrel roll!
Whats your skype?
10-01-2014, 12:19 AM #3
Chris
Former Staff
Everything you need to learn GSC is already provided honestly. There are countless tutorials and I think that if you took the time to look around and read things, you might find life a bit more easy.
10-01-2014, 12:40 AM #4
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by Boliberrys View Post
Hello guys, im creating a GSC with custom GameMode, and i want to know if someone can help me to make unable to press START(to change class). Because to play this Gamemode, players need a specific class, that will be given when they spawn.

Help please Happy


Just make so that if they don't have the correct weapon it will take it away and give them the correct weapon.
10-01-2014, 12:43 AM #5
Boliberrys
^^ Sexy ^^
Originally posted by SyGnUs View Post
Just make so that if they don't have the correct weapon it will take it away and give them the correct weapon.


Im new at coding this xD any extra clue please?
Thnx btw Happy
10-01-2014, 12:56 AM #6
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by Boliberrys View Post
Im new at coding this xD any extra clue please?
Thnx btw Happy


Here is an example -

    
AllowedWeapons()
{
while(1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "mp7_mp" )
{
self giveWeapon("mp7_mp");
self switchToWeapon("mp7_mp");
}
wait 0.05;
}
}


Thats just an example, it will work but that would only allow you one gun. So you may want to make a function with the allowed weapons then call it in the function above. Just look around the web like Natsu suggested, it will help you out.
10-01-2014, 01:04 AM #7
Boliberrys
^^ Sexy ^^
Originally posted by SyGnUs View Post
Here is an example -

    
AllowedWeapons()
{
while(1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "mp7_mp" )
{
self giveWeapon("mp7_mp");
self switchToWeapon("mp7_mp");
}
wait 0.05;
}
}


Thats just an example, it will work but that would only allow you one gun. So you may want to make a function with the allowed weapons then call it in the function above. Just look around the web like Natsu suggested, it will help you out.


Thanks!
10-01-2014, 01:15 AM #8
Boliberrys
^^ Sexy ^^
Originally posted by SyGnUs View Post
Here is an example -

    
AllowedWeapons()
{
while(1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "mp7_mp" )
{
self giveWeapon("mp7_mp");
self switchToWeapon("mp7_mp");
}
wait 0.05;
}
}


Thats just an example, it will work but that would only allow you one gun. So you may want to make a function with the allowed weapons then call it in the function above. Just look around the web like Natsu suggested, it will help you out.


Whenever i try doing it with one weapon(just like your example) my ps3 freezes... Im changing the code, and still freezing xD
10-01-2014, 01:16 AM #9
Boliberrys
^^ Sexy ^^
Originally posted by SyGnUs View Post
Here is an example -

    
AllowedWeapons()
{
while(1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "mp7_mp" )
{
self giveWeapon("mp7_mp");
self switchToWeapon("mp7_mp");
}
wait 0.05;
}
}


Thats just an example, it will work but that would only allow you one gun. So you may want to make a function with the allowed weapons then call it in the function above. Just look around the web like Natsu suggested, it will help you out.


Nevermind, i fixed it Winky Winky
10-01-2014, 01:59 AM #10
Boliberrys
^^ Sexy ^^
Originally posted by calvinlmao View Post
Whats your skype?


martokiper

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo