Raised This Month: $ Target: $400
 0% 

[ZP] Cual es la mejor forma !!! ??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SkiGz
BANNED
Join Date: Aug 2010
Location: Venezuela
Old 02-18-2011 , 08:45   [ZP] Cual es la mejor forma !!! ??
#1

mi pregunta es cual es la mejor forma de reiniciar una variable a 1

Code:
variable[id]

Code:
// Reset Player Vars reset_vars(id, resetall) {     g_zombie[id] = false     g_nemesis[id] = false     g_armagedon[id] = false     g_survivor[id] = false     g_firstzombie[id] = false     g_lastzombie[id] = false     g_lasthuman[id] = false     g_frozen[id] = false     g_nodamage[id] = false     g_respawn_as_zombie[id] = false     g_nvision[id] = false     g_nvisionenabled[id] = false     g_flashlight[id] = false     g_flashbattery[id] = 100     g_canbuy[id] = true         if (resetall)     {         g_variable[id] = 1         g_ammopacks[id] = 5         g_zombieclass[id] = ZCLASS_NONE         g_zombieclassnext[id] = ZCLASS_NONE         g_damagedealt[id] = 0         WPN_AUTO_ON = 0     } }

o

Code:
public client_putinserver(id) {     // Plugin disabled?     if (!g_pluginenabled) return;         // Initialize player vars     reset_vars(id, 1)                 variable[id] = 1
SkiGz is offline
Send a message via MSN to SkiGz
 



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 22:41.


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