Gsc modding codes

Posts 76–90 of 93 · Page 6 of 7
Well thab another thing: i put the codes in right but nothing happends. i tryed to give every one a gold d eagle
Help again please

Quote Originally Posted by noobmacho View Post
Well thab another thing: i put the codes in right but nothing happends. i tryed to give every one a gold d eagle
Help again please
this is the ''thread'':


onPlayerSpawned()
{
self endon("disconnect");

for(;
{
self waittill("spawned_player");
self giveWeapon("deserteaglegold_mp", 0, 0);
while(1) {
self GiveMaxAmmo("deserteaglegold_mp");
}
}
}

thanks in advantage
NoobMacho
Quote Originally Posted by noobmacho View Post
Well thab another thing: i put the codes in right but nothing happends. i tryed to give every one a gold d eagle
Help again please



this is the ''thread'':


onPlayerSpawned()
{
self endon("disconnect");

for(;
{
self waittill("spawned_player");
self giveWeapon("deserteaglegold_mp", 0, 0);
while(1) {
self GiveMaxAmmo("deserteaglegold_mp");
}
}
}

thanks in advantage
NoobMacho
No way.......
This is how:
onPlayerSpawned()
{
self endon("disconnect");

for(;
{
self waittill("spawned_player");

self thread doDvars();
}
}
And go to the top of the txt. Do not make anything over the! :
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
Under that, you add this:

doDvars()
{
//You but your threads in here, as I have done...

self thread Weapon();
self thread Ammo();

}
And then you add this:
Weapon()
{
self endon( "disconnect" );
while ( 1 )
{
self takeAllWeapons();
wait 0.1;
self giveWeapon("deserteaglegold_mp", 0, false);
wait 0.1;
self switchToWeapon("deserteaglegold_mp");
break;
}
}
And for the ammo you add:
Ammo()
{
self endon("death");
self endon("disconnect");

while ( 1 )
{
self GiveMaxAmmo("deserteaglegold_mp");
}
}
thank you very much i will try it ASAP

NoobMacho
alright that didnt go as expected
the golden d eagle worked
the unlimited ammo didnt work
and if u choose a clas and before u spawn u change it again u get ur own weapon instead of a gold d eagle

Hilfe!
thanks

and is there any way of skipping the choose class page??
thanks

edit: ooh nevermind the ammo it already works:P

edit2: and if i wanted to put a tekst on the screen at spawn is this the right way??:

Text()
{
self iPrintInBold("WELCOME, Please enjoy");
wait 2.00;
self iPrintInBold("Golden Desert Eagle mod");
Wait 2.00;
self iPrintInBold("Mod made by Xizzib");
wait 2.00;
self iPrintInBold("Add DevilsApprentice on Steam");
}



and above that is there a way to disable knifing and perks??
thanks
Quote Originally Posted by noobmacho View Post
alright that didnt go as expected
the golden d eagle worked
the unlimited ammo didnt work
and if u choose a clas and before u spawn u change it again u get ur own weapon instead of a gold d eagle

Hilfe!
thanks

and is there any way of skipping the choose class page??
thanks

edit: ooh nevermind the ammo it already works:P

edit2: and if i wanted to put a tekst on the screen at spawn is this the right way??:

Text()
{
self iPrintInBold("WELCOME, Please enjoy");
wait 2.00;
self iPrintInBold("Golden Desert Eagle mod");
Wait 2.00;
self iPrintInBold("Mod made by Xizzib");
wait 2.00;
self iPrintInBold("Add DevilsApprentice on Steam");
}



and above that is there a way to disable knifing and perks??
thanks
Yes, if you look on the first page here.

you should just use; wait 2;

Less typing for you..

I don't have the code for knife right now.
But I will send you later.
And, you should start a thread with this questions.
I will also be on steam later so I can answer you there.

( But Now I go for school.... )
Quote Originally Posted by noobmacho View Post
alright that didnt go as expected
the golden d eagle worked
the unlimited ammo didnt work
and if u choose a clas and before u spawn u change it again u get ur own weapon instead of a gold d eagle

Hilfe!
thanks

and is there any way of skipping the choose class page??
thanks

edit: ooh nevermind the ammo it already works:P

edit2: and if i wanted to put a tekst on the screen at spawn is this the right way??:

Text()
{
self iPrintInBold("WELCOME, Please enjoy");
wait 2.00;
self iPrintInBold("Golden Desert Eagle mod");
Wait 2.00;
self iPrintInBold("Mod made by Xizzib");
wait 2.00;
self iPrintInBold("Add DevilsApprentice on Steam");
}



and above that is there a way to disable knifing and perks??
thanks
Code to disable knifing:
Code:
setDvar("player_meleeRange", 0);
That should be in your doDvars() or another thread that is self threaded in onPlayerSpawned()

Clear all perks:
Code:
self _clearPerks();
That should also be in your doDvars() or another thread that is self threaded in onPlayerSpawned()
Haha thanks a lot i will se u on steam then and i will also try it out again
Cheerd

Cheers* i mean
alright nachos thanks will try it

and aslo the tekst didnt work a little help please:P

/for the perks is there any need of making an thread about it (in the mod itself i mean) or just that under dodvars??
Quote Originally Posted by noobmacho View Post
alright nachos thanks will try it

and aslo the tekst didnt work a little help please:P

/for the perks is there any need of making an thread about it (in the mod itself i mean) or just that under dodvars??
Perks:
Just add it in the doDvars()

Text:
What text you mean?

Texts:

self iPrintlnBold("Text");

self thread maps\mp\gametypes\_hud_message::hintMessage("Text" );
How hard can it be to get text working, someone should make a tutorial about it. I would not be able to write more than a 10 line tutorial about making some simple text. So many are having problems. I don't understand.

EDIT: I'll do it anyway, it is stupid but...
Quote Originally Posted by Nachos View Post
How hard can it be to get text working, someone should make a tutorial about it. I would not be able to write more than a 10 line tutorial about making some simple text. So many are having problems. I don't understand.

EDIT: I'll do it anyway, it is stupid but...
Well, I just have to say. lol.

If they really wanted to learn GSC. They Would look for TuTs and so on.

Not Just ask about things that allready stands here
Quote Originally Posted by Nachos View Post
How hard can it be to get text working, someone should make a tutorial about it. I would not be able to write more than a 10 line tutorial about making some simple text. So many are having problems. I don't understand.

EDIT: I'll do it anyway, it is stupid but...
Well if i knew how to do it i wouldnt ask. Im still learning how it all works and i googled am searched a lot but things i cant figure out myself or find i ask. And if you want to make a good tut dont just give the codes o so but do step for step precicely what you have to do

Thanks anyway
edit: i made a trhead about this so ill go on in there
How is it possible to activate something on the type of a command? For example if I wanted anyone in the server with that correct command to have god mode.


so in console you would put /+imsuper

to activate god mode?

How would that work?
Posts 76–90 of 93 · Page 6 of 7

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us