Liberty Unleashed

Scripting => Script Help => Topic started by: nacho_gb1 on December 20, 2010, 03:14:45 pm

Title: how to put text in class team and other
Post by: nacho_gb1 on December 20, 2010, 03: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:

(http://img811.imageshack.us/img811/3351/dibujoejp.th.jpg) (http://img811.imageshack.us/i/dibujoejp.jpg/)

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
Title: Re: how to put text in class team and other
Post by: nacho_gb1 on December 22, 2010, 04: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
Title: Re: how to put text in class team and other
Post by: Force on December 22, 2010, 05:21:18 pm
Afaik, classid is actually a pointer to the class so it would be classid.ID == whatever, try that.
Title: Re: how to put text in class team and other
Post by: nacho_gb1 on December 23, 2010, 06: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?

(http://img811.imageshack.us/img811/3351/dibujoejp.th.jpg) (http://img811.imageshack.us/i/dibujoejp.jpg/)

saludos