Raised This Month: $ Target: $400
 0% 

Godmode for X seconds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 05-27-2004 , 07:45   Godmode for X seconds
Reply With Quote #1

i want give 5s of godmode for antispawn protection

How i can do that....

set_user_godmode don t exist....
[/code]
sanaell is offline
Send a message via MSN to sanaell
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 05-27-2004 , 12:10  
Reply With Quote #2

from fun.inc:

Code:
/* Sets player godmode. If you want to disable godmode set only first parameter. */ native set_user_godmode(index, godmode = 0);


So, maybe you need to include fun module into your code??

Ex:
#include <fun>
xeroblood is offline
Send a message via MSN to xeroblood
Girthesniper
Senior Member
Join Date: Mar 2004
Location: Maryland
Old 05-27-2004 , 16:12  
Reply With Quote #3

POST THAT PLUGIN! THATS AN AWSOME IDEA!
__________________
BANNED
Girthesniper is offline
Send a message via AIM to Girthesniper Send a message via MSN to Girthesniper
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 05-27-2004 , 19:49  
Reply With Quote #4

amx_slap gir,
Use the search tool.
__________________
QwertyAccess is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-27-2004 , 19:58   Re: Godmode for X seconds
Reply With Quote #5

Quote:
Originally Posted by sanaell
i want give 5s of godmode for antispawn protection

How i can do that....
You want to make an anti-spawnprotection plugin or a spawnprotection plugin? Well anyways , try looking at the code from the spawnprotection plugin I made. Or just try working with what you wanted. :
Code:
set_task("5.0","function") //Sets god off in 5 seconds, but you have to put a function... set_user_godmode(id,0/1) //God on or off but you have to put an id...
Good luck.
Peli is offline
Send a message via MSN to Peli
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 05-28-2004 , 11:59   Re: Godmode for X seconds
Reply With Quote #6

Quote:
Originally Posted by Peli
Quote:
Originally Posted by sanaell
i want give 5s of godmode for antispawn protection

How i can do that....
You want to make an anti-spawnprotection plugin or a spawnprotection plugin? Well anyways , try looking at the code from the spawnprotection plugin I made. Or just try working with what you wanted. :
Code:
set_task("5.0","function") //Sets god off in 5 seconds, but you have to put a function... set_user_godmode(id,0/1) //God on or off but you have to put an id...
Good luck.
how ?

can we get the man who attack and the one who was attacked ?

in that
Code:
public plugin_init() {     register_plugin("Anti Respawn","0.1.2","MeOw")     register_cvar("anti_respawn_time","5.0")     server_cmd("exec addons/cfg_plug/anti_respawn/anti_respawn.cfg")     new mapname[33]     get_mapname(mapname,32)     if(equali(mapname,"aaa_",4) || equali(mapname,"aim_",4) || equali(mapname,"awp_",4) || equali(mapname,"scoutzknivez",5) || equali(mapname,"duel_",5) || equali(mapname,"fy_",3) ) {         register_event("RoundTime", "Round_Time", "bc") //i want get the one who was attacked here and give him temp god mode but it must be in damage_msg function         register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")     }     return PLUGIN_CONTINUE }
sanaell is offline
Send a message via MSN to sanaell
Reply


Thread Tools
Display Modes

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 07:02.


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