Author Topic: how to put text in class team and other  (Read 2105 times)

nacho_gb1

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
how to put text in class team and other
« on: December 20, 2010, 04:14:45 pm »
hi, I have a question,how to put text in class team.

class team  0 is Mafia , class team 1 is Police

I would like to put something like:



and I have a problem with the gun:

content.xml:

<weapon class=”0” model=”2” ammo=”250” />

ID 0 Is class team or no?


who gives me the callback onClientRequestClass

saludos
« Last Edit: December 20, 2010, 09:22:19 pm by nacho_gb1 »

nacho_gb1

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: how to put text in class team and other
« Reply #1 on: December 22, 2010, 05:54:31 pm »
hi, my code:

Code: [Select]
  function onClientRequestClass( player, classid )
   {
   if(classid = 0)
    {
    BigMessage("Mafia",5000,1);
    }
    if(classid = 1)
    {
    BigMessage("Police",5000,1);
    }
    return 1;
}

as?, guns do not work for me.

saludos

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Re: how to put text in class team and other
« Reply #2 on: December 22, 2010, 06:21:18 pm »
Afaik, classid is actually a pointer to the class so it would be classid.ID == whatever, try that.
Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

nacho_gb1

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: how to put text in class team and other
« Reply #3 on: December 23, 2010, 07:19:41 pm »
Afaik, classid is actually a pointer to the class so it would be classid.ID == whatever, try that.

hi,
I served anyone know?
how to put this?



saludos

 

© Liberty Unleashed Team.