Raised This Month: $32 Target: $400
 8% 

CS_RespawnPlayer CSGO become ghost.


Post New Thread Reply   
 
Thread Tools Display Modes
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 08-04-2015 , 18:13   Re: CS_RespawnPlayer CSGO become ghost.
Reply With Quote #11

It must be something weird with CS:GO. From my experiences, the only time you get stuck in a ground after respawn is if you teleport the client too quickly.

By the way, having a timer at anything below 0.1 defaults to 0.1; so having a timer at 0.000000001 is still 0.1.
Marcus_Brown001 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 08-05-2015 , 01:57   Re: CS_RespawnPlayer CSGO become ghost.
Reply With Quote #12

Quote:
Originally Posted by Marcus_Brown001 View Post
By the way, having a timer at anything below 0.1 defaults to 0.1; so having a timer at 0.000000001 is still 0.1.
Important.

Also keep in mind that CS:GO requires delays in alot of things so if something is buggy when you try to do it right away, try using a timer. It will usually work things out.
headline is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-05-2015 , 02:23   Re: CS_RespawnPlayer CSGO become ghost.
Reply With Quote #13

RequestFrame is simpler for this btw :V
Miu is offline
shortguy
Member
Join Date: Jul 2009
Old 08-05-2015 , 02:57   Re: CS_RespawnPlayer CSGO become ghost.
Reply With Quote #14

Quote:
Originally Posted by Miu View Post
RequestFrame is simpler for this btw :V
Thanks, just converted to this:

Code:
public void RF_RespawnClient(int client) {
  CS_RespawnPlayer(client);
}

public OnPluginStart() {
  HookEvent("player_death", Event_PlayerDeath);
}

public Action Event_PlayerDeath(Handle event, const char[] name, bool dontBroadcast) 
{
  int userID = GetEventInt(event, "userid");
  int client = GetClientOfUserId(userID);

  if (!IsPlayerAlive(client)) {
    RequestFrame(RF_RespawnClient, client);
  }
  return Plugin_Continue;
}
shortguy is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-05-2015 , 03:00   Re: CS_RespawnPlayer CSGO become ghost.
Reply With Quote #15

nice dude
Miu is offline
Reply



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 07:46.


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