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

Players infected return to spawn PLUGIN???


Post New Thread Reply   
 
Thread Tools Display Modes
kleuser
Member
Join Date: Dec 2014
Old 07-08-2016 , 03:38   Re: Players infected return to spawn PLUGIN???
Reply With Quote #31

Quote:
Originally Posted by Agent Wesker View Post
Try this and post any errors zr_teleinfected.smx
Code:
L 07/08/2016 - 16:36:42: [SM] Plugin encountered error 25: Call was aborted
L 07/08/2016 - 16:36:42: [SM] Native "ThrowError" reported: Array size is null!
L 07/08/2016 - 16:36:42: [SM] Displaying call stack trace for plugin "zr_teleinfected.smx":
L 07/08/2016 - 16:36:42: [SM]   [0]  Line 56, E:\Users\19046000002\Downloads\scripting\zr_teleinfected.sp::OnMapStart()
Code:
L 07/08/2016 - 16:37:59: [SM] Plugin encountered error 25: Call was aborted
L 07/08/2016 - 16:37:59: [SM] Native "ThrowError" reported: Random int is less than 0 what happened here?
L 07/08/2016 - 16:37:59: [SM] Displaying call stack trace for plugin "zr_teleinfected.smx":
L 07/08/2016 - 16:37:59: [SM]   [0]  Line 97, E:\Users\19046000002\Downloads\scripting\zr_teleinfected.sp::TelePlayer()
L 07/08/2016 - 16:37:59: [SM]   [1]  Line 72, E:\Users\19046000002\Downloads\scripting\zr_teleinfected.sp::ZR_OnClientInfected()
kleuser is offline
Agent Wesker
Senior Member
Join Date: Apr 2012
Old 07-11-2016 , 12:11   Re: Players infected return to spawn PLUGIN???
Reply With Quote #32

Quote:
Originally Posted by kleuser View Post
Code:
L 07/08/2016 - 16:36:42: [SM] Plugin encountered error 25: Call was aborted
L 07/08/2016 - 16:36:42: [SM] Native "ThrowError" reported: Array size is null!
L 07/08/2016 - 16:36:42: [SM] Displaying call stack trace for plugin "zr_teleinfected.smx":
L 07/08/2016 - 16:36:42: [SM]   [0]  Line 56, E:\Users\19046000002\Downloads\scripting\zr_teleinfected.sp::OnMapStart()
Code:
L 07/08/2016 - 16:37:59: [SM] Plugin encountered error 25: Call was aborted
L 07/08/2016 - 16:37:59: [SM] Native "ThrowError" reported: Random int is less than 0 what happened here?
L 07/08/2016 - 16:37:59: [SM] Displaying call stack trace for plugin "zr_teleinfected.smx":
L 07/08/2016 - 16:37:59: [SM]   [0]  Line 97, E:\Users\19046000002\Downloads\scripting\zr_teleinfected.sp::TelePlayer()
L 07/08/2016 - 16:37:59: [SM]   [1]  Line 72, E:\Users\19046000002\Downloads\scripting\zr_teleinfected.sp::ZR_OnClientInfected()
Apparently CS:GO had an update that removed spawn entities (?) so I rewrote the plugin to capture player location when they spawn instead.

Once again, post any errors here: zr_teleinfected.smx
Attached Files
File Type: sp Get Plugin or Get Source (zr_teleinfected.sp - 162 views - 5.1 KB)

Last edited by Agent Wesker; 07-11-2016 at 12:21.
Agent Wesker is offline
kleuser
Member
Join Date: Dec 2014
Old 07-14-2016 , 23:35   Re: Players infected return to spawn PLUGIN???
Reply With Quote #33

Quote:
Originally Posted by Agent Wesker View Post
Apparently CS:GO had an update that removed spawn entities (?) so I rewrote the plugin to capture player location when they spawn instead.

Once again, post any errors here: zr_teleinfected.smx
work fine. Thx
kleuser is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 07-15-2016 , 07:48   Re: Players infected return to spawn PLUGIN???
Reply With Quote #34

This simple code that I made, works well (tested).

PHP Code:
#include <sourcemod>
#include <zombiereloaded>

public ZR_OnClientInfected(clientattackerbool:motherInfectbool:respawnOverridebool:respawn)
{
    if(
attacker != -1ZR_RespawnClient(clientZR_Respawn_Zombie);

I attached the binary of this code.
Attached Files
File Type: smx zr_simpleteleinfected.smx (3.4 KB, 125 views)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
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 23:57.


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