I would like to know how to make...
#1

Hello, I would like to know how to make a command like: '/watchtv' and then the person will see(spec) the brodcaster of /brodcast or /news ?

(I do not need /news and /brodcast cmd. I need /watchtv)

Much Regards,
Meinstad.
Reply
#2

Thats really easy.
Reply
#3

Dcmd or casual?
Reply
#4

Quote:
Originally Posted by Super_Panda
Посмотреть сообщение
Thats really easy.
You can just explain him how, since is very easy!

I didn't understand what do you need, but I saw the word "spec". Do you want spec someone in your server. Like /spec id and watch him
Reply
#5

I don't care @Super_Panda

@whitedragon - I don't know.

No. I got a spec cmd, but like:

A Player goes to a shop and buy a TV.
Then if he owns a house he can then /watchtv in his house, but only if someone is using the cmd /brodcast or /news. -< Thoose cmd's are allready there for a faction named SANews. When the player do /watchtv he will then in somehow spec the newsreporter. Like an TV.
Reply
#6

All you need is a few variables. I'll list them:
  1. One determining if the player owns a TV
  2. One determining if they are in their house
  3. One determining if someone is live on the air (used /news or /broadcast)
  4. One determining the player ID of the person using /news or /broadcast)
Now, create the command /watchtv. Check if these variables match what they need to, if they do, continue processing the command. Otherwise, don't process the command and return an error message or whatever.

Save the players position and then do something like:

pawn Код:
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, newsperson, SPECTATE_MODE_NORMAL);
Reply
#7

Oh thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)