Raised This Month: $51 Target: $400
 12% 

Duda sobre limitar algo por mapa


  
 
 
Thread Tools Display Modes
Author Message
Sidix
Senior Member
Join Date: Feb 2011
Location: Limbo City
Old 03-23-2013 , 00:12   Duda sobre limitar algo por mapa
#1

Hola a todos, mi pregunta: Cual es la función que sirve para limitar X cosa por mapa o que puedo utilizar para lograrlo?

Gracias de antemano.
__________________
[IMG]http://img839.**************/img839/1879/dmcdanteprofile.png[/IMG]
Sidix is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 03-23-2013 , 05:14   Re: Duda sobre limitar algo por mapa
#2

con limitar X cosa te refieres a una entidad?

si es así, crea una variable global, cuando vas a crear la entidad le pones algo como if(g_variable >= TULIMITE) para evitar que se cree y luego cada vez que se cree subes la variable

Last edited by baneado; 03-23-2013 at 05:15.
baneado is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 03-23-2013 , 10:07   Re: Duda sobre limitar algo por mapa
#3

plugin_init.

edit: yo usaba plugin_cfg pero me dijeron que es mejor en plugin_init.
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"

Last edited by Roccoxx; 03-23-2013 at 10:07.
Roccoxx is offline
Send a message via MSN to Roccoxx
Stereo
Veteran Member
Join Date: Dec 2010
Old 03-23-2013 , 10:40   Re: Duda sobre limitar algo por mapa
#4

No hace falta nada especial, las variables de los plugins al cambiar de mapa se resetean, fijate en lo que te dijo baneado.

Last edited by Stereo; 03-23-2013 at 11:55.
Stereo is offline
Sidix
Senior Member
Join Date: Feb 2011
Location: Limbo City
Old 03-23-2013 , 11:40   Re: Duda sobre limitar algo por mapa
#5

Gracias a todos por responder lo e podido solucionar...
__________________
[IMG]http://img839.**************/img839/1879/dmcdanteprofile.png[/IMG]
Sidix is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 03-23-2013 , 12:19   Re: Duda sobre limitar algo por mapa
#6

Quote:
Originally Posted by Stereo View Post
No hace falta nada especial, las variables de los plugins al cambiar de mapa se resetean, fijate en lo que te dijo baneado.
tenes razon me habia olvidado e.e

podes usar una trie para detectar si alguien ya mando sus modos y almacenar su nombre en ella.
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode