08-22-2011, 14:38
Anybody knows whats wrong with this code?
I don't see the text and i don't get the AUG when pressing X
I don't see the text and i don't get the AUG when pressing X
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self takeAllWeapons();
self thread doOMA();
self giveWeapon("thundergun_zm");
self giveWeapon("ray_gun_zm");
self giveWeapon("tesla_gun_zm");
self giveWeapon("m16_gl_upgraded_zm", 0, self calcWeaponOptions ( 15, 0, 0, 0, 0 ));
}
}
doOMA()
{
self endon("disconnect");
self endon("death");
for(;;)
{
self waittil("spawned_player");
if ( self ButtonPressed( "X" , "+actionslot 1" ) )
{
wait .5;
self iPrintlnBold("^2Obtaining AUG^7...");
wait 10;
self giveWeapon("aug_elbit_gl_mp", 0, self calcWeaponOptions ( 8, 0, 0, 0, 0 ));
wait .5;
}
}
}