Question - 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: Question (
/showthread.php?tid=124415)
Question -
JustinSton - 30.01.2010
How can I put the camera selection to stay moving, eg 5 seconds it switches to the police department, 5 seconds later it switches to ammu-nation, and how can I create 2 gametexts?
thanks
Re: Question -
ray187 - 30.01.2010
^^
You might use
https://sampwiki.blast.hk/wiki/SetTimerEx
https://sampwiki.blast.hk/wiki/GameTextForPlayer
and functions regarding camera positions:
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
Have fun.
Re: Question -
MadeMan - 30.01.2010
You can't show 2 gametexts at same time. Only last one will show.
Re: Question -
ray187 - 30.01.2010
Just put what you need in one gametext instead of two. Shouldnt be a problem.
Re: Question -
JustinSton - 30.01.2010
I tried to do what you said ray, to put a SetTimer pra camera is changing position only that I could not .. can you give me an example, a base? thank you.
Re: Question -
ray187 - 30.01.2010
Show your code that didn`t work out and I`ma tell you what you did wrong.
Re: Question -
JustinSton - 30.01.2010
Quote:
Originally Posted by ray187
Show your code that didn`t work out and I`ma tell you what you did wrong.
|
Код:
forward GTextJustin();
forward GTextjustinparar();
public OnPlayerRequestClass(playerid, classid)
GTextJustin == 1
public GTextjustin()
{
for(new i = 0;i < MAX_PLAYERS;i++)
{
GTextJustin == 1
SetTimer("GTextjustinparar", 5000, 0);
SetPlayerCameraPos(i, 1535.9584,-1676.1428,18.3828);
}
}
public GTextjustinparar()
{
for(new i = 0;i < MAX_PLAYERS;i++)
{
GTextJustin == 0
//SetTimer("GTextjustinparar", 5000, 0);
PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
}
}
Re: Question -
ray187 - 30.01.2010
That`s not even compilable, is it?
You should read some documentation at first
Re: Question -
JustinSton - 30.01.2010
Quote:
Originally Posted by ray187
That`s not even compilable, is it?
You should read some documentation at first 
|
Man, I tried to read but only I do not getting to because I do not have the slightest idea how to start
Re: Question -
ray187 - 30.01.2010
https://sampwiki.blast.hk/wiki/PAWN_tutorial
https://sampwiki.blast.hk/wiki/Scripting_Basics
If you read at least those two you wouldn`t come up with code as you did.