View Single Post
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 11-25-2014 , 10:29   Re: How to write a simple script for god mode?
Reply With Quote #4

Quote:
Originally Posted by DJ Data View Post
Code:
#include <sourcemod> public Plugin:myinfo = {     name = "God on Spawn",     author = "Danian",     description = "Gives you god mode on spawn",     version = "1.0",     url = "http://www.esrc.tv" }; public OnPluginStart() {     //Hooks     HookEvent("player_spawn", Event_PlayerSpawn); } public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) {     new client = GetClientOfUserId(GetEventInt(event, "userid"));         SetEntProp(client, Prop_Data, "m_takedamage", 0, 1); }
You know you don't need to attach an SMX if your ownly using includes that COME with SourceMod ITSELF. Just attach the sp file and let users click: Get Plugin
__________________
WildCard65 is offline