#1

Ok, I need to know how to make a command that... Well here's an example


/911

And only the Police class can see it.
Reply
#2

Explain more, please.
Reply
#3

OK, Well When a car runs out of fuel i want them to be able to do /911. Then it only alerts the Tow truck driver.
Reply
#4

Why not make a Dialog List when he types /911, with options like "Cops" "Medic" "Tow Truck", and when he selects one, an Input Dialog allows him to enter a message for that particular service, and the members of the service gets a SendClientMessage? Just an idea
Reply
#5

That's a good idea, but i don't know how to make it alert a certain class.
Reply
#6

Not too sure but something like:

Код:
Player loop(i) ->

if(GetPlayerSkin(i) == (skin id of the Tow Truck guy))
{
SendClientMessage(i, COLOR, (the input text from the dialog box));
Reply
#7

Hmm, Can't get it to work
Reply
#8

Yeah well not copy+paste, make it yourself... mine was just something to follow
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)