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

[Read before posting] 5.0 Beta Updates


Post New Thread Closed Thread   
 
Thread Tools Display Modes
deadman909
Veteran Member
Join Date: Oct 2008
Old 12-09-2012 , 22:58   Re: [Read before posting] 5.0 Beta Updates
#51

I tried all the God Mode version in the list but they all do not seem to work for me. Everything it says that I put godmode on myself but I can always still get hurt.

This is the God Mode code that is in the Plugin:
Code:
public CmdGodmode(id, level, cid)
{
	if(!cmd_access(id, level, cid, 2))
		return PLUGIN_HANDLED
	
	new name[32]
	get_user_name(id, name, 31)
	
	new AuthId[36]
	get_user_authid(id, AuthId, 35)
	
	new cmd[24]
	read_argv(1, cmd, 23)
	
	new length[6]
	read_argv(2, length, 2)
	
	new godmodesetting = str_to_num(length)
	
	if(cmd[0] == '@')
	{
		new players[32], pnum, tempid, CmdTeam: Team
		
		switch(cmd[1])
		{
			case 't', 'T':	
			{
				get_players(players, pnum, "ae", "TERRORIST");
				Team = T;
			}
			
			case 'c', 'C':
			{
				get_players(players, pnum, "ae", "CT");
				Team = CT;
			}
			
			case 'a', 'A':
			{
				get_players(players, pnum, "a");
				Team = ALL;
			}
		}
		
		for(new i = 0; i < pnum; i++)
		{
			tempid = players[i];
			
			// set_user_godmode(tempid, godmodesetting)
			set_user_godmode(tempid, !!godmodesetting);
			
			if (godmodesetting == 2)
				g_iFlags[tempid] |= PERMGOD
		}
		
		/* removed from *for* loop
			switch(length[0])
			{
				case '0':
				{
					set_user_godmode(tempid, 0);
					// gPermGod[tempid] = false;
					g_iFlags[id] &= ~PERMGOD;
				}
				
				case '1':
					set_user_godmode(tempid, 1);
				
				case '2':
				{
					set_user_godmode(tempid, 1);
					// gPermGod[tempid] = true;
					g_iFlags[id] |= PERMGOD;
				}
			}
		}*/
		
		//godmodesetting = str_to_num(length)
		
		show_activity_key("AMX_SUPER_GODMODE_TEAM_CASE1", "AMX_SUPER_GODMODE_TEAM_CASE2", name, godmodesetting, g_TeamNames[Team])

		console_print(id, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_TEAM_MSG", godmodesetting, g_TeamNames[Team])
		log_amx("%L", LANG_SERVER, "AMX_SUPER_GODMODE_TEAM_LOG", name, AuthId, godmodesetting, g_TeamNames[Team])
	}
	
	else
	{
		new player = cmd_target(id, cmd, CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
		
		if(!player)
			return PLUGIN_HANDLED

		new name2[32]
		get_user_name(player, name2, 31)
		
		// set_user_godmode(player, godmodesetting)
		set_user_godmode(player, !!godmodesetting)
		
		if (godmodesetting == 2)
			g_iFlags[player] |= PERMGOD
			
		/*switch(length[0])
		{
			case '0':
			{
				set_user_godmode(player, 0)
				// gPermGod[player] = false
				g_iFlags[player] &= ~PERMGOD;
			}
			
			case '1':
				set_user_godmode(player, 1)
			
			case '2':
			{
				set_user_godmode(player, 1)
				// gPermGod[id] = true
				g_iFlags[player] |= PERMGOD;
			}
		}*/
		
		//godmodesetting = str_to_num(length)
				
		show_activity_key("AMX_SUPER_GODMODE_PLAYER_CASE1", "AMX_SUPER_GODMODE_PLAYER_CASE2", name, godmodesetting, name2)

		console_print(id, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_PLAYER_MSG", godmodesetting, name2)
		log_amx("%L", LANG_SERVER, "AMX_SUPER_GODMODE_PLAYER_LOG", name, AuthId, godmodesetting, name2)
	}
	
	return PLUGIN_HANDLED
}
__________________


Last edited by deadman909; 12-09-2012 at 23:05.
deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-15-2013 , 16:45   Re: [Read before posting] 5.0 Beta Updates
#52

Opening thread as development is ongoing again!

Latest files and progress can be followed here.
__________________

Last edited by DarkGod; 11-15-2013 at 16:48.
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Closed Thread



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 06:04.


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