blob: b1fef7997ec0c89a5a60958919dab3acd9f9365c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include maps\_utility;
#include common_scripts\utility;
#include maps\_hud_util;
main()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self iprintln("Spawned raygun!");
self GiveWeapon("ray_gun_zm");
self SetWeaponAmmoStock("ray_gun_zm", 1000);
self SwitchToWeapon("ray_gun_zm");
}
}
|