AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Simple player respawn? (https://forums.alliedmods.net/showthread.php?t=147221)

manslayer 01-06-2011 17:38

Simple player respawn?
 
I run a bhop server and I would like players to be able to type "spawn" or "!spawn" and respawn.

P.S. I would prefer it work whether the player is dead or alive.

-Thanks.

snipercup 01-06-2011 23:31

Re: Simple player respawn?
 
PHP Code:

public OnPluginStart()
{
    
//A command to respawn
    
RegConsoleCmd("sm_respawn"Command_respawn);
}



//Respawn
public Action:Command_respawn(clientargs)
{
      
PrintToChat(client"You respawned");
      
DispatchSpawn(client);
      return 
Plugin_Handled;


This works for my in my synergy server, no problem. The command would be sm_respawn in console and !respawn in chat. Though, I do not know if this is the right way to do this. If it works for you, it works.

FaTony 01-08-2011 05:06

Re: Simple player respawn?
 
Nice one!


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

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