SA-MP Forums Archive
spawning... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: spawning... (/showthread.php?tid=141452)



spawning... - WardenCS - 13.04.2010

Hello,i wanted to make tut system if people will get online they will see tut,but the prob is,it wont spawn the player,it will show the onplayerequestspawn thing,i added SpawnPlayer(playerid); like hundred times but it wont work

heres the code

Код:
			SpawnPlayer(playerid);
			SpawnPlayer(playerid);
			SpawnPlayer(playerid);
			SpawnPlayer(playerid);
			SpawnPlayer(playerid);
			SpawnPlayer(playerid);
			SpawnPlayer(playerid);
			SpawnPlayer(playerid);
			SpawnPlayer(playerid);
		  SetPlayerPos(playerid,0.000,0.000,0.000);
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
		  SendClientMessage(playerid,0x008000FF, "");
   		SetPlayerCameraPos(playerid, 2249.2661,-1195.3722,1030.7656);
			SetPlayerCameraLookAt(playerid, 2242.6453,-1188.2625,1029.7969);
      SendClientMessage(playerid,0x008000FF, "You Choosed to see the tutorial!good for you!");
      SendClientMessage(playerid,COLOR_WHITE, "------FACTIONS------");
      SendClientMessage(playerid,COLOR_WHITE, "There is many factions you can join");
      SendClientMessage(playerid,COLOR_WHITE, "Like : Teachers,Bullies,Skaters or nerds");
      SendClientMessage(playerid,COLOR_WHITE, "All of them has own hanging place.");
      SendClientMessage(playerid,COLOR_WHITE, "If you can find it,maybe you can join it.");
			SetTimer("Tutsteps",15000,1);
			TutorialStage[playerid] = 1;
			TogglePlayerControllable(playerid,0);



Re: spawning... - WardenCS - 14.04.2010

BUMP!


Re: spawning... - Mike Garber - 14.04.2010

Don't bump your own topic within 24 hours.
And I saw a topic like this a few weeks ago, so search and you can find It.

Don't tell me you can't find It, If I can, you can.

I typed two words and It was the very first topic in the search results.


Re: spawning... - Correlli - 14.04.2010

Quote:
Originally Posted by mavtias
Don't bump your own topic within 24 hours.
It's 12, not 24.


Re: spawning... - Mike Garber - 14.04.2010

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by mavtias
Don't bump your own topic within 24 hours.
It's 12, not 24.
I'm almost positive that It was 24h limit not too long ago. But It seems to be changed, I see It's 12h now.

My mistake.


Re: spawning... - Correlli - 14.04.2010

It was always 12h (even when this rule came for the first time on this forum) as far as I can remember. But that's not really important, we're going too much with offtopic.

@Fog™: Adding one function 10x won't help, debug your code and test it and help yourself with the search feature.


Re: spawning... - M4S7ERMIND - 14.04.2010

When player gets to classelection, set a timer that will spawn him/her after 50 milliseconds for example.


Re: spawning... - Thrarod - 14.04.2010

And check if player had tutorial before please


Re: spawning... - WardenCS - 14.04.2010

the player is in tutorial,but it wont spawn him,i dont really understand why.


Re: spawning... - Thrarod - 14.04.2010

Dont spawn him? It will work w/o spawnplayer (cam thingies) an spawn after tut?