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

[CS:S, ZRiot & ZReloaded] Lasermines v1.4.2


Post New Thread Reply   
 
Thread Tools Display Modes
TheLaser
Senior Member
Join Date: Jan 2008
Location: USA VA
Old 12-14-2011 , 09:12   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #21

?

The ziped downloads are not working , tells me to notify an admin ??

never mind , after I logged in it let me

Last edited by TheLaser; 12-14-2011 at 09:13.
TheLaser is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 12-14-2011 , 10:24   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #22

maybe it was being removed and updated by me at the same moment you tried to download?

on fine day it has happened to me too

Last edited by Despirator; 12-14-2011 at 10:24.
Despirator is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 12-15-2011 , 08:44   Re: [CS:S, ZReloaded & ZRiot] Laser mines v1.1
Reply With Quote #23

Quote:
Originally Posted by _Hood_ View Post
Maybe i found something: zriot_lasermines_amount <- dont work players spawns with 0 Lasermines (its not bad because they can buy them , but its defekt , and maybe you can fix it )
It will work only if buy mode is disabled

Quote:
Originally Posted by _Hood_ View Post
Suggestion:
Would it be possible to set up a limit for each team?
Because: after planting over 200 mines (or more) the server physic breaks (if you drope your weapon it gets through the floor) and the server crashes.
now it can be done by creating another plugin with the lasermines' API
Despirator is offline
_Hood_
Senior Member
Join Date: Dec 2010
Old 12-15-2011 , 09:10   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #24

you mean someon should make another lasermines plugin?
__________________
_Hood_ is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 12-15-2011 , 09:55   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #25

create another plugin using the lasermines' API

for example:
PHP Code:
#include <sourcemod> 
#include <zriot_lasermines> 

new Handle:h_limit
new 
limit[MAXPLAYERS+1]; 

public 
OnPluginStart() 

    
h_limit CreateConVar("zriot_client_limit""5""The max limit"FCVAR_PLUGINtrue0.0); 
    
HookEvent("round_start"OnRoundStart); 

public 
OnRoundStart(Handle:event, const String:name[], bool:dontBroadcast

    for (new 
1<= MaxClientsi++)
    { 
        
limit[i] = 0
    } 

public 
ZRiot_OnLaserMinePlanted(clientFloat:act_delayexp_damageexp_radiushealthcolor[3]) 

    
limit[client]++; 

public 
Action:ZRiot_OnPlantLaserMine(client, &Float:act_delay, &exp_damage, &exp_radius, &healthcolor[3]) 

    if (
limit[client] > GetConVarInt(h_limit)) 
    {
        
PrintHintText(client"You have reached your limit of laser mines!");
        return 
Plugin_Handled;
    }
    return 
Plugin_Continue

that script should work

Last edited by Despirator; 12-15-2011 at 14:38.
Despirator is offline
_Hood_
Senior Member
Join Date: Dec 2010
Old 12-15-2011 , 12:58   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #26

hmm how can i add that? i just get 8 compiling errors xD
__________________
_Hood_ is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 12-15-2011 , 13:24   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #27

i updated the post, try again
forgot to put i in for loop
Despirator is offline
_Hood_
Senior Member
Join Date: Dec 2010
Old 12-16-2011 , 06:17   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #28

Hmm by adding this codes i just get Fatal errors in compiling , maybe you should look at this just look at the compiling errors

EDIT: yes it compiled but just with 3 errors , i think every thing is ok
Attached Thumbnails
Click image for larger version

Name:	Error.png
Views:	329
Size:	36.9 KB
ID:	96794  
__________________

Last edited by _Hood_; 12-16-2011 at 06:25.
_Hood_ is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 12-16-2011 , 06:30   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #29

i didn't say to put the code to the zriot_lasermines.sp file
i said create another one

here i did it myself
Attached Files
File Type: smx zriot_lasermines_limit.smx (2.5 KB, 195 views)
File Type: sp Get Plugin or Get Source (zriot_lasermines_limit.sp - 208 views - 1.1 KB)
Despirator is offline
_Hood_
Senior Member
Join Date: Dec 2010
Old 12-16-2011 , 07:14   Re: [CS:S, ZReloaded & ZRiot] Lasermines v1.3
Reply With Quote #30

he wont compile
Attached Thumbnails
Click image for larger version

Name:	Error.png
Views:	380
Size:	47.8 KB
ID:	96797  
__________________
_Hood_ 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 21:28.


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