Raised This Month: $ Target: $400
 0% 

Want player spawn dead


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-05-2017 , 19:38   Re: Want player spawn dead
Reply With Quote #1

Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> public plugin_init() {     register_plugin("Plugin", "1.0", "Crazy");     RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1); } public fw_PlayerSpawn_Post(id) {     if (!is_user_alive(id) || !cs_get_user_team(id))         return;     cs_set_user_team(id, CS_TEAM_T);     ExecuteHam(Ham_Killed, id, id, 0); }

EDIT: added more parameters into ExecuteHam to prevent log errors..
__________________









Last edited by CrazY.; 04-17-2017 at 10:09. Reason: Code edited..
CrazY. is offline
ish12321
Veteran Member
Join Date: May 2016
Old 04-06-2017 , 01:17   Re: Want player spawn dead
Reply With Quote #2

Thanks.
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 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 18:01.


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