Raised This Month: $ Target: $400
 0% 

Please help me finish this freeze skill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-25-2014 , 12:10   Re: Please help me finish this freeze skill
Reply With Quote #1

what is "player attacker skill in ESS" ??
Is it plugin and you want plugin to use that server command ??
__________________
Do not Private Message @me

Last edited by Bacardi; 12-25-2014 at 12:11. Reason: is it
Bacardi is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 12-26-2014 , 18:11   Re: Please help me finish this freeze skill
Reply With Quote #2

Anyone?
xines is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-25-2014 , 14:03   Re: Please help me finish this freeze skill
Reply With Quote #3

People create topics and use PM instead, why ?


...then try add hashtag later in command callback.
Code:
...
public Action:freeze(client, args)
{
    new String:buffer[MAX_NAME_LENGTH];
    GetCmdArg(1, buffer, sizeof(buffer));
    Format(buffer, sizeof(buffer), "#%s", buffer);
    new victim = FindTarget(client, buffer, _, false);

    if( victim != -1 ) // Found target
    {
...

event script should go trash....
__________________
Do not Private Message @me
Bacardi is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 12-25-2014 , 14:06   Re: Please help me finish this freeze skill
Reply With Quote #4

pm cause nobody want to let their steam name out to eveybody..

- and thanks will try
xines is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 12-25-2014 , 14:27   Re: Please help me finish this freeze skill
Reply With Quote #5

works however i want it to use "RegServerCmd" instead so players cant do !command, and is it possible to add a check for "jetpack" like if jetpack is activated for other player and i shoot a player while they being in the air, the unfreeze timer sets the EntityMoveType to NONE, and player falls from air, anyway to fix this by adding a check if jetpack, then set the unfreeze to FLY again?
xines is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 12-26-2014 , 22:47   Re: Please help me finish this freeze skill
Reply With Quote #6

If you don't want players to do !command, then make it an admin command or something (RegAdminCmd). Then the players cannot access it.

Also, you probably would need to look up the events in your game (like events that are fired when players are shot) to do what you want.
Potato Uno is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 12-26-2014 , 23:00   Re: Please help me finish this freeze skill
Reply With Quote #7

Since im using this into another plugin i need it to be RegServerCmd, due no !commands what so ever
- i know what events to use, ive got it all setup just need this script to be "RegServerCmd" and have a check for if jetpack, due to what i said above about jetpack

Last edited by xines; 12-26-2014 at 23:02. Reason: missing some info
xines is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-27-2014 , 08:02   Re: Please help me finish this freeze skill
Reply With Quote #8

...little advice for you
cs:s game not have jetpacks for players, so it have made by plugin, mod or map trigger+entity.
no one not bother to find and guess that modification from web.
even less if it run on another addon than SM.
you should clarify more what you want.

just my opinion
__________________
Do not Private Message @me
Bacardi is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 12-27-2014 , 09:57   Re: Please help me finish this freeze skill
Reply With Quote #9

Hello again, let me clarify what i meant by "jetpack" then:

Example of jetpack/fly whatever.
PHP Code:
    if(jetpack == 0)
    {
        
SetEntityMoveType(clientMOVETYPE_WALK);
    }
    if(
jetpack == 1)
    {
        
SetEntityMoveType(clientMOVETYPE_FLY);
    } 
When i use the freeze skill onto a player while he have "MOVETYPE_FLY" acticated, then simply after the timer goes off it sets his "MOVETYPE" to "SetEntityMoveType(victim, MOVETYPE_WALK);". ="Player will be falling from air"
For this to be avoid it would require a check for if person got "MOVETYPE_FLY" activated already, for the timer to be set to "MOVETYPE_FLY" when timer goes off.

- Hope this was clarifying enough
xines is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-27-2014 , 10:39   Re: Please help me finish this freeze skill
Reply With Quote #10

ok...
I'm bit hurry to go.

so you mean this kind check ?
PHP Code:
...
    new 
MoveType:GetEntityMoveType(client);
    if(
== MOVETYPE_FLY)
    {
        
// Has "jetpack", do something
    
}
    else if(
== MOVETYPE_WALK)
    {
        
// Walk
    
}
... 
__________________
Do not Private Message @me
Bacardi 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 13:28.


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