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

Solved [CSGO]How i can write plugin which will turn of and on plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Danielej1
Senior Member
Join Date: Jul 2022
Location: Poland
Old 01-28-2023 , 13:47   [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #1

How can I make the sm_thunder command display an example of this plugin being disabled/enabled in chat?
Attached Files
File Type: sp Get Plugin or Get Source (lightingpower.sp - 175 views - 4.4 KB)

Last edited by Danielej1; 02-01-2023 at 11:26.
Danielej1 is offline
Alex Taylor
Junior Member
Join Date: Jan 2023
Location: Hungary
Old 01-28-2023 , 14:19   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #2

I don't know what you want to do with this plugin, maybe you could give me a more understandable description.

And for the second time, you are working with old syntax. Which is not exactly the best
Alex Taylor is offline
Danielej1
Senior Member
Join Date: Jul 2022
Location: Poland
Old 01-28-2023 , 14:27   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #3

Quote:
Originally Posted by Alex Taylor View Post
I don't know what you want to do with this plugin, maybe you could give me a more understandable description.

And for the second time, you are working with old syntax. Which is not exactly the best
simply if I type the sm_thunder command to pop up the information on the chat was turned on or off
Danielej1 is offline
Alex Taylor
Junior Member
Join Date: Jan 2023
Location: Hungary
Old 01-28-2023 , 14:37   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #4

Quote:
Originally Posted by Danielej1 View Post
simply if I type the sm_thunder command to pop up the information on the chat was turned on or off

Exactly, if you want sm_thunder to turn off HookEvents on command, or to write to you in chat, then command.

EDIT: Unfortunately, the plugin returns with a warning, so enter this at the top like this: #pragma tabsize 0
Attached Files
File Type: sp Get Plugin or Get Source (lightingpowerEDITED.sp - 133 views - 4.8 KB)

Last edited by Alex Taylor; 01-28-2023 at 14:40.
Alex Taylor is offline
Danielej1
Senior Member
Join Date: Jul 2022
Location: Poland
Old 01-28-2023 , 14:45   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #5

Quote:
Originally Posted by Alex Taylor View Post
Exactly, if you want sm_thunder to turn off HookEvents on command, or to write to you in chat, then command.

EDIT: Unfortunately, the plugin returns with a warning, so enter this at the top like this: #pragma tabsize 0
i cant compile :

Code:
//// lightingpowerEDITED.sp
//
// C:\Users\danie\OneDrive\Pulpit\Nowy folder\lightingpowerEDITED.sp(43) : error 001: expected token: ",", but found "{"
// C:\Users\danie\OneDrive\Pulpit\Nowy folder\lightingpowerEDITED.sp(43) : error 001: expected token: ";", but found "}"
// C:\Users\danie\OneDrive\Pulpit\Nowy folder\lightingpowerEDITED.sp(43) : error 001: expected token: ";", but found "{"
//
// 3 Errors.
//
// Compilation Time: 0,3 sec
// ----------------------------------------
Danielej1 is offline
Alex Taylor
Junior Member
Join Date: Jan 2023
Location: Hungary
Old 01-28-2023 , 14:50   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #6

Quote:
Originally Posted by Danielej1 View Post
i cant compile :

Code:
//// lightingpowerEDITED.sp
//
// C:\Users\danie\OneDrive\Pulpit\Nowy folder\lightingpowerEDITED.sp(43) : error 001: expected token: ",", but found "{"
// C:\Users\danie\OneDrive\Pulpit\Nowy folder\lightingpowerEDITED.sp(43) : error 001: expected token: ";", but found "}"
// C:\Users\danie\OneDrive\Pulpit\Nowy folder\lightingpowerEDITED.sp(43) : error 001: expected token: ";", but found "{"
//
// 3 Errors.
//
// Compilation Time: 0,3 sec
// ----------------------------------------
Your Complier is bad.
Click To "Get Plugin" (not "Get Source") or Go to this website, and copmlie here https://spider.limetech.io/
__________________
if ( me.IsAlive() )
{
me.Coding();
}
[HUN] Taylor'sense Server Group Owner
Discord Community>| https://discord.com/invite/njumUg3 |
Discord Name>| Alex Taylor#1988 |

Last edited by Alex Taylor; 01-28-2023 at 14:52.
Alex Taylor is offline
Danielej1
Senior Member
Join Date: Jul 2022
Location: Poland
Old 01-28-2023 , 15:11   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #7

Quote:
Originally Posted by Alex Taylor View Post
Your Complier is bad.
Click To "Get Plugin" (not "Get Source") or Go to this website, and copmlie here https://spider.limetech.io/
I see one big bug, that when I turn this plugin on, all Players without Privileges have this effect could you make it so that only that particular player with the "o" Custom1 flag can see these effects?
Danielej1 is offline
Alex Taylor
Junior Member
Join Date: Jan 2023
Location: Hungary
Old 01-28-2023 , 15:20   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #8

Quote:
Originally Posted by Danielej1 View Post
I see one big bug, that when I turn this plugin on, all Players without Privileges have this effect could you make it so that only that particular player with the "o" Custom1 flag can see these effects?
EDIT: This is not a bug, it was simply not included

Unfortunately, you cannot do this with the "round_freeze_end" event, but I added it to the Death Event.
Attached Files
File Type: sp Get Plugin or Get Source (lightingpowerEDITED.sp - 136 views - 4.9 KB)
__________________
if ( me.IsAlive() )
{
me.Coding();
}
[HUN] Taylor'sense Server Group Owner
Discord Community>| https://discord.com/invite/njumUg3 |
Discord Name>| Alex Taylor#1988 |

Last edited by Alex Taylor; 01-28-2023 at 15:26.
Alex Taylor is offline
Danielej1
Senior Member
Join Date: Jul 2022
Location: Poland
Old 01-28-2023 , 15:51   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #9

One last simple question, can you change so that if a Player types a command who has Vip "Custom1" and types the command !sm_thunder so that only he sees this effect? is it possible?
Danielej1 is offline
Alex Taylor
Junior Member
Join Date: Jan 2023
Location: Hungary
Old 01-29-2023 , 05:29   Re: [CSGO]How i can write plugin which will turn of and on plugin
Reply With Quote #10

Quote:
Originally Posted by Danielej1 View Post
One last simple question, can you change so that if a Player types a command who has Vip "Custom1" and types the command !sm_thunder so that only he sees this effect? is it possible?
U can make it easily.

First make dimension to the global bool with false default value, like that:
Code:
 bool bIsPluginOn[MAXPLAYERS + 1] = { false, ...};
After you've done this, from now on you have to write "iClient" after every bool and use it like that.

But with the "freezetime_end" event, everyone will see it, because you either have to solve it in a different way, or delete the whole thing.

If you have any questions, feel free to contact me on Discord, I'll help. | Alex Taylor#1988 |

Sorry for my really, really bad english.

EDIT: You need to use !thunder command, not !sm_thunder !
Attached Files
File Type: sp Get Plugin or Get Source (lightingpowerEDITED.sp - 119 views - 3.5 KB)
__________________
if ( me.IsAlive() )
{
me.Coding();
}
[HUN] Taylor'sense Server Group Owner
Discord Community>| https://discord.com/invite/njumUg3 |
Discord Name>| Alex Taylor#1988 |

Last edited by Alex Taylor; 01-29-2023 at 05:30.
Alex Taylor is offline
Reply


Thread Tools
Display Modes

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 16:18.


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