Class - 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: Class (
/showthread.php?tid=128031)
Class -
ScottCFR - 16.02.2010
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.
Re: Class -
AcId n RaPiD - 16.02.2010
Explain more, please.
Re: Class -
ScottCFR - 16.02.2010
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.
Re: Class -
IcyBlight - 16.02.2010
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
Re: Class -
ScottCFR - 16.02.2010
That's a good idea, but i don't know how to make it alert a certain class.
Re: Class -
IcyBlight - 16.02.2010
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));
Re: Class -
ScottCFR - 16.02.2010
Hmm, Can't get it to work
Re: Class -
IcyBlight - 16.02.2010
Yeah well not copy+paste, make it yourself... mine was just something to follow