i can help u i think =D
i had the problem to
cuz i deleted :
Code:for(;;)thanks if it helped =DCode:onPlayerSpawned() { self endon("disconnect"); { for(;;) self waittill("spawned_player"); self thread doSpawn(); } }
[php]doSpawn()
{
if(getDvar("mapname") == "mp_checkpoint")
{
if(self.team == "allies")
{
self.randomspawn = randomInt(6);
if(self.randomspawn == 0) {
self SetOrigin((-3404,-1626,424)); }
if(self.randomspawn == 1) {
self SetOrigin((-3881,-440,424)); }
if(self.randomspawn == 2) {
self SetOrigin((-2919,-466,360)); }
if(self.randomspawn == 3) {
self SetOrigin((-3237,-247,360)); }
if(self.randomspawn == 4) {
self SetOrigin((-3230,-488,632)); }
if(self.randomspawn == 5) {
self SetOrigin((-2979,-454,496)); }
}
if(self.team == "axis")
{
self.randomspawn = randomInt(6);
if(self.randomspawn == 0) {
self SetOrigin((-2564,903,584)); }
if(self.randomspawn == 1) {
self SetOrigin((-2508,851,189)); }
if(self.randomspawn == 2) {
self SetOrigin((-3121,1132,312)); }
if(self.randomspawn == 3) {
self SetOrigin((-3611,888,224)); }
if(self.randomspawn == 4) {
self SetOrigin((-3915,1007,632)); }
if(self.randomspawn == 5) {
self SetOrigin((-2849,1055,488)); }
}
}
}
onPlayerSpawned()
{
self endon("disconnect");
self waittill("spawned_player");
self thread doSpawn();
}[/php]
That's my code....
My problem is that the players do spawn exactly 1time how I want them to spawn and after they died once they spawn how they normally spawn.
How can i fix this ?
Last edited by prisma; 10-10-2010 at 01:58 PM.
i can help u i think =D
i had the problem to
cuz i deleted :
Code:for(;;)thanks if it helped =DCode:onPlayerSpawned() { self endon("disconnect"); { for(;;) self waittill("spawned_player"); self thread doSpawn(); } }
Bring a Ding Ding Baby!
prisma (10-10-2010)
Edit: Got it working now... Thanks TheSaboteur
Got another problem...
The first time a player spawns he spawns at the normal coordinates, untill he died onetime he spawns how i want him to spawn every time... How can I fix this ?
Last edited by prisma; 10-10-2010 at 02:32 PM.
Code:onPlayerSpawned() { self endon("disconnect"); for(;;) { self waittill("spawned_player"); self thread doSpawn(); } }
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
Oh isn't it solved? <_>
/unsolved then <_<
Last edited by Blubb1337; 10-11-2010 at 03:32 AM.
Already got that... But the first time every player spawns how they normally do, after they died once or switched the Team they spawn how I want them to spawn...
ps: How can i force change the Team?
something like(except of all the mistakes x))Code:If(self.team==Allies) {self setTeam=axis }
Last edited by prisma; 10-11-2010 at 03:42 AM.
put it this in onPlayerConnect()
player thread doSpawn();