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

[REQ] Simple Respawn


Post New Thread Reply   
 
Thread Tools Display Modes
skatzfz
Senior Member
Join Date: Apr 2014
Old 06-12-2014 , 17:34   Re: [REQ] Simple Respawn
Reply With Quote #11

It works fine, thanks! I made some changes in the plugin, but one I can't make because i'm noob in pawn, can you make only users with reservation flag respawn in 10 seconds and the others respawn in 30 seconds?

Spoiler
skatzfz is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-12-2014 , 17:43   Re: [REQ] Simple Respawn
Reply With Quote #12

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <colorchat>

#define PLUGIN "Simple Respawn"
#define VERSION "1.0"
#define AUTHOR "Flicker"

new const Prefix[] = "^04[ FIGHTZONE ] "

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Killed"player""Death"1)
}

public 
client_putinserver(id)
    
MainFunc(id)

public 
Death(id)
    
MainFunc(id)


public 
MainFunc(id)
{
    if(!
is_user_connected(id))
        return
        
        
    new 
Float:delaymessage[151]
    if(
get_user_flags(id) & ADMIN_RESERVATION)
    {
        
formatex(messagecharsmax(message), "%s^03COMPRA ^04VIP ^03E O TEMPO DE ESPERA ^04DIMINUI ^03PARA ^0410 SEGUNDOS"Prefix)
        
delay 10.0
    
}
    else
    {
        
formatex(messagecharsmax(message), "%s^03EM^04 3O SEGUNDOS RENASCES^03, APROVEITA PARA CHAMARES AMIGOS :)"Prefix)
        
delay 30.0
    
}
    
set_task(delay"Respawn"id )
    
}

public 
Respawn(id)
{
    if(
is_user_alive(id) || cs_get_user_team(id) == CS_TEAM_SPECTATOR)
        return
    
    
ExecuteHamB(Ham_CS_RoundRespawnid)

__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
skatzfz
Senior Member
Join Date: Apr 2014
Old 06-12-2014 , 17:59   Re: [REQ] Simple Respawn
Reply With Quote #13

Thanks!
skatzfz is offline
Reply



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


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