Question
#1

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
Reply
#2

^^

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.
Reply
#3

You can't show 2 gametexts at same time. Only last one will show.
Reply
#4

Just put what you need in one gametext instead of two. Shouldnt be a problem.
Reply
#5

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.
Reply
#6

Show your code that didn`t work out and I`ma tell you what you did wrong.
Reply
#7

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);
	}
}
Reply
#8

That`s not even compilable, is it?

You should read some documentation at first
Reply
#9

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
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)