Post: Function call, help
08-15-2015, 03:57 AM #1
ByteSource
League Champion
(adsbygoogle = window.adsbygoogle || []).push({}); Im trying to get ufo to bind when player spawns, ive tried millions of methods. i dont know if its the way i did it or the function it self..

if anyone can help me with this, i havent coded gsc since mw2 days. just started last night again...
(adsbygoogle = window.adsbygoogle || []).push({});
08-15-2015, 04:03 AM #2
HiddenHour
I defeated!
Originally posted by TehK9
Im trying to get ufo to bind when player spawns, ive tried millions of methods. i dont know if its the way i did it or the function it self..

if anyone can help me with this, i havent coded gsc since mw2 days. just started last night again...


    #include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;Winky Winky
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;Winky Winky
{
self waittill("spawned_player");

self thread UFOfunction();
}
}

UFOfunction()
{

}

The following user thanked HiddenHour for this useful post:

ByteSource

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo