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

Spawn Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 05-12-2004 , 21:03  
Reply With Quote #21

Alright good luck man
__________________
Nick is offline
Send a message via MSN to Nick
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-12-2004 , 22:05  
Reply With Quote #22

a point of reference is from warcraft III FT oneof the hero's has onkey godmode for X seconds and adding glow to that shouldnt be hard
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Fireace22
Member
Join Date: Apr 2004
Old 05-12-2004 , 22:10  
Reply With Quote #23

how do u edit sma files... bc i cant just open it in notepad like a ini.... could u tell me how or just make another 1 with 5 seconds and post it <3
Fireace22 is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-12-2004 , 22:29  
Reply With Quote #24

Click open instead of save when you are downloading the sma.
Peli is offline
Send a message via MSN to Peli
Fireace22
Member
Join Date: Apr 2004
Old 05-12-2004 , 22:56  
Reply With Quote #25

u guys r to smart for fire
Fireace22 is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-12-2004 , 23:59  
Reply With Quote #26

Look , I am not smarter than you. Just go to the plugin you want to edit from the Plugins section. Now once your in that plugins topic , scroll down to the attachment and click on "DOWNLOAD SMA" and click OPEN instead of SAVE. Then it will open the sma and you can edit it and save it.
Peli is offline
Send a message via MSN to Peli
Fireace22
Member
Join Date: Apr 2004
Old 05-13-2004 , 02:08  
Reply With Quote #27

Quote:
Originally Posted by Peli
Look , I am not smarter than you. Just go to the plugin you want to edit from the Plugins section. Now once your in that plugins topic , scroll down to the attachment and click on "DOWNLOAD SMA" and click OPEN instead of SAVE. Then it will open the sma and you can edit it and save it.
lol u could of just said thnx, np
Fireace22 is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-13-2004 , 07:31  
Reply With Quote #28

I use Scite for all my text editing needs. i.e. cfg sma ini etc. since this shows the text in the right context etc.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
McD
Junior Member
Join Date: Apr 2004
Old 05-14-2004 , 08:37  
Reply With Quote #29

Nice!
__________________
McD - Burgers for the people!
McD is offline
Fireace22
Member
Join Date: Apr 2004
Old 05-14-2004 , 08:57  
Reply With Quote #30

L 05/14/2004 - 04:50:51: [AMXX] Run time error 22 on line 0 (plugin "spawnprotection.amx")

and here is the code... im guessing i screwed it up when trying to make it 5 seconds


Code:
/*     Credits : Thanks to Xeroblood , JJkiller and KingPin for helping
*  making this plugin.
*
*      Installing : Download .SMA to Scripting folder , run compiler , copy the
*  file from Compiled folder and paste in Plugins folder , add the plugin name
*  in the Amxx plugins.ini ie) : spawnprotection.amx.
*
*      Use : After you install it , join the game and type this in the console :
*  Amx_god 1 and a message like this , "SPAWN PROTECTION IS ENABLED" will
*  appear in read in the middle of the screen for ten seconds giving all
*  players godmode.
*/

#define GOD_TIME 5.0
#include <amxmodx>
#include <fun>


public plugin_init()
{
    register_plugin("Spawn Protection","0.1","Peli")
    register_cvar("amx_god","1")
    register_event("ResetHUD","god_on","b")
}
public god_on()
{
    if (!(get_cvar_num("amx_god") == 1))
        return PLUGIN_HANDLED
        
    new players[32], numberofplayers
    get_players(players,numberofplayers)
    for (new i=1;i<=numberofplayers;i++)
        set_user_godmode(i,1)
      
    set_hudmessage( 255, 0, 0, -1.0, -1.0, 0, 6.0, 10.0, 0.5, 1.5, 4 )
    show_hudmessage(0, "SPAWN PROTECTION IS ENABLED")
    
    set_task(5.0,"god_off")
    return PLUGIN_HANDLED
}

public god_off(id)
{
    new players[32], numberofplayers
    get_players(players,numberofplayers)
    for (new i=1;i<=numberofplayers;i++)
        set_user_godmode(i,0)
    return PLUGIN_CONTINUE
}
Fireace22 is offline
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 09:23.


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