Raised This Month: $ Target: $400
 0% 

Health


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zugelman
Junior Member
Join Date: May 2009
Old 06-04-2009 , 15:38   Health
Reply With Quote #1

Greetings to All!!! Prompt please how to make constantly filled standard of living.
Zugelman is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-04-2009 , 16:50   Re: Health
Reply With Quote #2

Enable god mode on a client:
Code:
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1);
Disable god mode on a client:
Code:
SetEntProp(client, Prop_Data, "m_takedamage", 2, 1);
bl4nk is offline
Zugelman
Junior Member
Join Date: May 2009
Old 06-06-2009 , 09:47   Re: Health
Reply With Quote #3

Thanks! Write please a ready script! I in this business the newcomer. I assume that it will look approximately so:
If ball co-ordinates coincide with a projection of gate. Immortality is disconnected.
Yes, it is necessary for me for soccermap
Zugelman is offline
Zugelman
Junior Member
Join Date: May 2009
Old 06-06-2009 , 12:27   Re: Health
Reply With Quote #4

I have made a script but it does not work. What have I made not correctly?
At loading and card work soccer immortality should join

public OnMapStart()
{
decl String:zsMapName[64];
GetCurrentMap(zsMapName, sizeof(zsMapName));

if (StrContains(zsMapName, "ka_soccer_2006_v2", false) == -1)
{
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1);
}
}
Zugelman is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 06-06-2009 , 14:09   Re: Health
Reply With Quote #5

Umm, I dont think it should be under OnMapStart......

It would need to be under public OnClientPutInServer(client) or something like that.
retsam is offline
Zugelman
Junior Member
Join Date: May 2009
Old 06-06-2009 , 14:20   Re: Health
Reply With Quote #6

Here a ready script! BUT!!! At a ball finding in collars. The command of the lost does not perish! (((I think, it is necessary to insert co-ordinates of gate and a ball here! But how? Who will help?

#pragma semicolon 1
#include <sourcemod>
new bool:g_bEnabled;
public OnPluginStart() {
HookEvent("player_spawn", Event_player_spawn);
}
public OnMapStart() {
decl String:map[32];
GetCurrentMap(map, sizeof(map));
g_bEnabled = StrEqual(map, "ka_soccer_2006_v2");
}
public Action:Event_player_spawn(Handle:event, const String:name[], bool:dontBroadcast) {
if(g_bEnabled)
SetEntProp(GetClientOfUserId(GetEventInt(even t, "userid")), Prop_Data, "m_takedamage", 0, 1);
}
Zugelman is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-06-2009 , 18:53   Re: Health
Reply With Quote #7

Are you trying to make it so that players on the losing team lose their immunity so they can be killed?
bl4nk is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 06-06-2009 , 19:59   Re: Health
Reply With Quote #8

I can barely understand what he is trying to say lol.

At a ball finding in collars?
At loading and card work soccer immortality should join?

I don't understand.
Dragonshadow is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-06-2009 , 21:01   Re: Health
Reply With Quote #9

He's more than likely just using a translator to translate words from his native language to English and it's coming out all garbled.
bl4nk is offline
Zugelman
Junior Member
Join Date: May 2009
Old 06-07-2009 , 02:00   Re: Health
Reply With Quote #10

YES! I use the translator, I Russian.
The command loses, but from for a plug-in does not perish.
It is necessary that perished!
And how to learn ball co-ordinates in game?

Last edited by Zugelman; 06-07-2009 at 02:09.
Zugelman 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 21:20.


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