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

[CS:GO] looking FAKE opencase in server


Post New Thread Reply   
 
Thread Tools Display Modes
Chokitu
Senior Member
Join Date: Oct 2013
Old 11-21-2015 , 16:29   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #21

I know haha was a joke!
But it does what he wants haha
Chokitu is offline
Send a message via Skype™ to Chokitu
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-22-2015 , 12:19   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #22

Working on a menu with knives, menu with knife skins.
Then prints a fake message that looks exactly like unboxing the chosen knife with it's chosen skin.
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.
tommie113 is offline
supreeda
Senior Member
Join Date: Jul 2015
Old 11-22-2015 , 12:27   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #23

it yes or no

can someone edit this ?

Quote:
#include <sourcemod>
#include <cstrike>
#include <colors>

public void OnPluginStart()

{
RegConsoleCmd("sm_fakeopen", Fakeopencase);
}

public Action Fakeopencase(int client, int args)
{
CPrintToChatAll("SOMEBODY has opened a container and found{red}:Karambit | Fade");
return Plugin_Handled;
}
supreeda is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-22-2015 , 14:23   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #24

Usage: sm_fakecase
Requires a flag to use

Plugin requires colorvariables.inc (included below).

You get a menu with knives.
Choose a knife and you'll get a new menu with knife skins.
Once you have chosen a skin it will print with correct (I hope they are correct) colors that you found that knife in a case.
Will add some more knife skins to it later when I have time.
If you have a bit of sourcemod coding knowledge you will be able to find the part in the code where you can add the skins and you can add new ones.
I'll try making it configurable through a cfg later on, but I'm not experienced with keyvalues.
Attached Files
File Type: sp Get Plugin or Get Source (fakecase.sp - 322 views - 2.8 KB)
File Type: inc colorvariables.inc (32.0 KB, 137 views)
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.
tommie113 is offline
supreeda
Senior Member
Join Date: Jul 2015
Old 11-22-2015 , 14:58   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #25

Quote:
Originally Posted by tommie113 View Post
Usage: sm_fakecase
Requires a flag to use

Plugin requires colorvariables.inc (included below).

You get a menu with knives.
Choose a knife and you'll get a new menu with knife skins.
Once you have chosen a skin it will print with correct (I hope they are correct) colors that you found that knife in a case.
Will add some more knife skins to it later when I have time.
If you have a bit of sourcemod coding knowledge you will be able to find the part in the code where you can add the skins and you can add new ones.
I'll try making it configurable through a cfg later on, but I'm not experienced with keyvalues.
Thank i will test it tommorrow
supreeda is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-22-2015 , 16:58   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #26

Quote:
Originally Posted by tommie113 View Post
Usage: sm_fakecase
Requires a flag to use

Plugin requires colorvariables.inc (included below).

You get a menu with knives.
Choose a knife and you'll get a new menu with knife skins.
Once you have chosen a skin it will print with correct (I hope they are correct) colors that you found that knife in a case.
Will add some more knife skins to it later when I have time.
If you have a bit of sourcemod coding knowledge you will be able to find the part in the code where you can add the skins and you can add new ones.
I'll try making it configurable through a cfg later on, but I'm not experienced with keyvalues.
Code:
Choose a knife and you'll get a new menu with knife skins.
thanks for plugin but after selecting a knife for example "★ Butterfly Knife | " nothing happens, the menu disappear.

Code:
L 11/22/2015 - 23:11:35: [SM] Native "SetArrayString" reported: Invalid index 1 (count: 0)
L 11/22/2015 - 23:11:35: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/22/2015 - 23:11:35: [SM]   [0]  Line 73, fakecase.sp::Menu_Knife()
L 11/22/2015 - 23:11:39: [SM] Native "SetArrayString" reported: Invalid index 1 (count: 0)
L 11/22/2015 - 23:11:39: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/22/2015 - 23:11:39: [SM]   [0]  Line 73, fakecase.sp::Menu_Knife()
L 11/22/2015 - 23:12:39: [SM] Native "SetArrayString" reported: Invalid index 1 (count: 0)
L 11/22/2015 - 23:12:39: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/22/2015 - 23:12:39: [SM]   [0]  Line 73, fakecase.sp::Menu_Knife()
L 11/22/2015 - 23:18:49: [SM] Native "SetArrayString" reported: Invalid index 1 (count: 0)
L 11/22/2015 - 23:18:49: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/22/2015 - 23:18:49: [SM]   [0]  Line 73, fakecase.sp::Menu_Knife()

Last edited by asdfxD; 11-22-2015 at 17:20.
asdfxD is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-22-2015 , 17:24   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #27

Added some log messages for debug purposes.

These messages should be logged:
Knife menu succesfully build.
Skin menu succesfully build.
Knife menu shown.
Knife menu handled.
Skin menu shown.
Skin menu handled.

Let me know which are missing in log.

Edit: Just saw your error log edit.
No need to dl this I can fix that error now.
Attached Files
File Type: sp Get Plugin or Get Source (fakecase.sp - 293 views - 3.2 KB)
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.

Last edited by tommie113; 11-22-2015 at 17:25.
tommie113 is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-22-2015 , 17:26   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #28

Quote:
Originally Posted by tommie113 View Post
Added some log messages for debug purposes.

These messages should be logged:
Knife menu succesfully build.
Skin menu succesfully build.
Knife menu shown.
Knife menu handled.
Skin menu shown.
Skin menu handled.

Let me know which are missing in log.

Edit: Just saw your error log edit.
No need to dl this I can fix that error now.
all what i get is,

Code:
L 11/22/2015 - 23:25:55: [fakecase.smx] Knife menu succesfully build.
L 11/22/2015 - 23:25:55: [fakecase.smx] Skin menu succesfully build.
edit: oOps. read your edit after posting my message.

Last edited by asdfxD; 11-22-2015 at 17:27.
asdfxD is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-22-2015 , 17:31   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #29

After I saw your error log I knew that the problem was there and that your log would be like that.
The array was uninitialized before setting an index inside it to a string.
Should be fixed now as I'm initializing every array index at the start now.
Attached Files
File Type: sp Get Plugin or Get Source (fakecase.sp - 288 views - 3.1 KB)
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.
tommie113 is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-22-2015 , 17:34   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #30

Quote:
Originally Posted by tommie113 View Post
After I saw your error log I knew that the problem was there and that your log would be like that.
The array was uninitialized before setting an index inside it to a string.
Should be fixed now as I'm initializing every array index at the start now.
error now while compiling.

Code:
// fakecase.sp(111) : error 033: array must be indexed (variable "knife")
// fakecase.sp(114) : warning 213: tag mismatch
// fakecase.sp(123) : warning 209: function "Menu_Skin" should return a value
//
asdfxD 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 20:04.


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