ted said in More than one custom GSC script?:
#include maps\mp_utility;
#include common_scripts\utility;
#include maps\mp\zombies_zm;
#include maps\mp\zombies_zm_utility;
init()
{
level.clientid = 0;
level.perk_purchase_limit = 9;
level thread onplayerconnect();
}
onplayerconnect()
{
for ( ;; )
{
level waittill( "connecting", player );
player.clientid = level.clientid;
player thread onplayerspawned();
level.clientid++;
}
}
onplayerspawned()
{
level endon( "game_ended" );
self endon( "disconnect" );
for(;;)
{
self welcome();
}
}
welcome()
{
self waittill( "spawned_player" );
self maps/mp/zombies/_zm_perks::give_perk( "specialty_armorvest" );
wait 7;
self iprintln("^2" +self.name + "^7 , your perk limit has been removed");
}
Thanks for the script. I will try to practice some more, i appreciate it