Raised This Month: $ Target: $400
 0% 

[AYUDA] Como Hago Esto?


  
 
 
Thread Tools Display Modes
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 07-16-2013 , 19:57   Re: [AYUDA] Como Hago Esto?
#11

Hace muuuucho no metia mano a amx, pero esto serviria?

PHP Code:
#include <amxmodx>
#include <hamsandwich>
 
public plugin_init() {
        
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
}
 
public 
fwHamPlayerSpawnPost(iPlayer) {
        new 
firstspawn=0
        
if (is_user_alive(iPlayer)) {
                
firstspawn++
            if(
firstspawn==1){
               
client_printid print_chat "Mensaje" )
            }
        }

__________________

Last edited by Ciio; 07-16-2013 at 19:59.
Ciio is offline
Send a message via MSN to Ciio
xGreat
Senior Member
Join Date: Jul 2012
Location: Chilean
Old 07-16-2013 , 23:51   Re: [AYUDA] Como Hago Esto?
#12

Quote:
Originally Posted by Ciio View Post
Hace muuuucho no metia mano a amx, pero esto serviria?

PHP Code:
#include <amxmodx>
#include <hamsandwich>
 
public plugin_init() {
        
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
}
 
public 
fwHamPlayerSpawnPost(iPlayer) {
        new 
firstspawn=0
        
if (is_user_alive(iPlayer)) {
                
firstspawn++
            if(
firstspawn==1){
               
client_printid print_chat "Mensaje" )
            }
        }

al respawnear se manda mensaje ...tengo entendido que quiere al conectar no al respawnear.
__________________
Mi 255
WwW.HnsBJz.Tk = MI FORO

xGreat is offline
Send a message via MSN to xGreat
MexPower
Veteran Member
Join Date: Nov 2012
Old 07-16-2013 , 23:55   Re: [AYUDA] Como Hago Esto?
#13

Quote:
Originally Posted by xGreat View Post
al respawnear se manda mensaje ...tengo entendido que quiere al conectar no al respawnear.
Solo en el primer respawn basicamente cuando entra o un poquito despues.
__________________
Allied Modders En Espaņol
MexPower is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-16-2013 , 23:58   Re: [AYUDA] Como Hago Esto?
#14

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR ":v C====3" const Float:PERIODO_DE_MUESTRA = 3.0 new const MENSAJE_DE_BIENVENIDA[] = "ZP 9.0 by megascripter full mods items classes xp" const TASK_ID = 6969 public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public client_putinserver(iId) {     set_task(PERIODO_DE_MUESTRA, "task_SendMsg", iId + TASK_ID) } public client_disconnect(iId) {     remove_task(iId + TASK_ID) } public task_SendMsg(iId) {     iId -= TASK_ID     client_print(iId, print_chat, MENSAJE_DE_BIENVENIDA) }
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 07-16-2013 at 23:58.
meTaLiCroSS is offline
xGreat
Senior Member
Join Date: Jul 2012
Location: Chilean
Old 07-17-2013 , 11:07   Re: [AYUDA] Como Hago Esto?
#15

Quote:
Originally Posted by meTaLiCroSS View Post
Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR ":v C====3" const Float:PERIODO_DE_MUESTRA = 3.0 new const MENSAJE_DE_BIENVENIDA[] = "ZP 9.0 by megascripter full mods items classes xp" const TASK_ID = 6969 public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public client_putinserver(iId) {     set_task(PERIODO_DE_MUESTRA, "task_SendMsg", iId + TASK_ID) } public client_disconnect(iId) {     remove_task(iId + TASK_ID) } public task_SendMsg(iId) {     iId -= TASK_ID     client_print(iId, print_chat, MENSAJE_DE_BIENVENIDA) }
Perfecto...
__________________
Mi 255
WwW.HnsBJz.Tk = MI FORO

xGreat is offline
Send a message via MSN to xGreat
 



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 05:43.


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