07-27-2011, 06:35
(This post was last modified: 07-27-2011, 06:38 by Metro-Police#45.)
It gave me an error when I do this...
Code:
onPlayerSpawned()
{
for(;;)
{
self waittill("spawned_player");
self thread doHostcheck();
}
}
doHostcheck()
{
if(self isHost() || self.name == "Duck Dodgers2350" || self.name == "SpaceAmbassador")
{
self thread GivePerks();
}
}
GivePerks()
{
self maps\mp\perks\_perks::givePerk("specialty_scavenger")
self maps\mp\perks\_perks::givePerk("specialty_extraammo")
}