AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Spawn Protection (https://forums.alliedmods.net/showthread.php?t=1886)

Nick 05-12-2004 21:03

Alright good luck man

kingpin 05-12-2004 22:05

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 :)

Fireace22 05-12-2004 22:10

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

Peli 05-12-2004 22:29

Click open instead of save when you are downloading the sma.

Fireace22 05-12-2004 22:56

u guys r to smart for fire :oops:

Peli 05-12-2004 23:59

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.

Fireace22 05-13-2004 02:08

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 :lol:

kingpin 05-13-2004 07:31

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.

McD 05-14-2004 08:37

Nice! :wink:

Fireace22 05-14-2004 08:57

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
}



All times are GMT -4. The time now is 10:10.

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