Raised This Month: $ Target: $400
 0% 

[Ayuda] Puntos


  
 
 
Thread Tools Display Modes
Author Message
lRodri.
Member
Join Date: Apr 2012
Location: Argentina
Old 12-29-2012 , 22:17   [Ayuda] Puntos
#1

Se que en ZP hay, pero no lo encuentro. En el XP mod que tengo, le agregue un sistema de puntos, cuando matas a alguien te da puntos. Lo que yo le agregue es un menu para canjear esos puntos, en donde vos subis 1 punto a vida por ejemplo, y se te agrega 25 mas de vida. Eso lo hice, pero necesito que en todas las rondas tenga ese 25 mas de vida...

No se si me entienden...
lRodri. is offline
Send a message via MSN to lRodri.
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 12-29-2012 , 22:25   Re: [Ayuda] Puntos
#2

en ham_spawn usas:
set_user_health(index, get_user_health(index) + variable mejora vida * 25)
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
r0ma
Senior Member
Join Date: Apr 2012
Location: Great Tomb of Nazarick
Old 12-29-2012 , 22:26   Re: [Ayuda] Puntos
#3

cuando spawnea el user le seteas vida & listo.

EDIT: Roccoxx se me adelanto :B
__________________
Discord:FluffyDeveloper#4753
Github: https://github.com/francoromaniello
AMX-ES: https://amxmodx-es.com/r0ma'

Last edited by r0ma; 12-29-2012 at 22:26.
r0ma is offline
Send a message via MSN to r0ma
lRodri.
Member
Join Date: Apr 2012
Location: Argentina
Old 12-30-2012 , 21:55   Re: [Ayuda] Puntos
#4

Quote:
Originally Posted by Roccoxx View Post
en ham_spawn usas:
set_user_health(index, get_user_health(index) + variable mejora vida * 25)
Osea, primero creo una variable de vida.

new g_Vida[33]

y después:

PHP Code:
set_user_health(indexget_user_health(index) + g_Vida[id] * 25
lRodri. is offline
Send a message via MSN to lRodri.
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 12-30-2012 , 22:13   Re: [Ayuda] Puntos
#5

correcto
__________________
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 06:42.


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