Raised This Month: $ Target: $400
 0% 

[ANY] Contracts


Post New Thread Reply   
 
Thread Tools Display Modes
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-26-2018 , 06:51   Re: [ANY] Contracts
Reply With Quote #221

Quote:
Originally Posted by Zyten View Post
ye givecontract works fine even before anything i tested it
Well, what was your problem again ?
__________________
Want to check my plugins ?
Arkarr is offline
Zyten
Senior Member
Join Date: Jan 2018
Old 04-26-2018 , 06:54   Re: [ANY] Contracts
Reply With Quote #222

i changed chance to 100% and time to 1sec for test it changes the contracts now i will give u more info when server is crowded
Zyten is offline
Zyten
Senior Member
Join Date: Jan 2018
Old 04-26-2018 , 07:21   Re: [ANY] Contracts
Reply With Quote #223

Quote:
Originally Posted by Arkarr View Post
Well, what was your problem again ?
it was giving same contract over and over again but it seems that sloved
i will give u more info later
Zyten is offline
Zyten
Senior Member
Join Date: Jan 2018
Old 04-26-2018 , 09:27   Re: [ANY] Contracts
Reply With Quote #224

works fine and nice plugin
Some idea i have abort contract after u have accepted it if u cant finish it
and number of ppl needed to be on server so u can work on the contract cos some of deals can be abused

Last edited by Zyten; 04-26-2018 at 09:27.
Zyten is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 04-26-2018 , 09:29   Re: [ANY] Contracts
Reply With Quote #225

Quote:
Originally Posted by Zyten View Post
works fine and nice plugin
Some idea i have abort contract after u have accepted it if u cant finish it
and number of ppl needed to be on server so u can work on the contract cos some of deals can be abused
There is this cvar "sm_contract_minimum_players" which you can set to avoid giving contracts if there are less than X people in the server.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
Zyten
Senior Member
Join Date: Jan 2018
Old 04-26-2018 , 09:42   Re: [ANY] Contracts
Reply With Quote #226

Quote:
Originally Posted by plock View Post
There is this cvar "sm_contract_minimum_players" which you can set to avoid giving contracts if there are less than X people in the server.
ye that work too actually

i was kinda think of this quest

"15"
{
"Contract Name" "Survive & Win some Event Days"
"Contract Type" "EVENT_DAYS"
"Contract Objective" "5"
"Contract Chances" "0.3"
"Contract Reward" "850"
}
}

when u get it with crowded server but u can finish it next day with ur friend easly. but if that start progress only if server has example 5 ppl. its just an idea thou
Zyten is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 04-26-2018 , 10:14   Re: [ANY] Contracts
Reply With Quote #227

Quote:
Originally Posted by Zyten View Post
ye that work too actually

i was kinda think of this quest

"15"
{
"Contract Name" "Survive & Win some Event Days"
"Contract Type" "EVENT_DAYS"
"Contract Objective" "5"
"Contract Chances" "0.3"
"Contract Reward" "850"
}
}

when u get it with crowded server but u can finish it next day with ur friend easly. but if that start progress only if server has example 5 ppl. its just an idea thou
I've made a quick cvar to verify the minimum players to progress with the quests and I made a pull request.

It's not tested, but you can compile my .sp and test it.

The cvar added is "sm_contract_minimum_players_progress".

EDIT: I could't compile because I'm at work atm.
Attached Files
File Type: sp Get Plugin or Get Source (Contract.sp - 119 views - 31.8 KB)
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile

Last edited by plock; 04-26-2018 at 10:15.
plock is offline
Zyten
Senior Member
Join Date: Jan 2018
Old 04-26-2018 , 11:01   Re: [ANY] Contracts
Reply With Quote #228

Quote:
Originally Posted by plock View Post
I've made a quick cvar to verify the minimum players to progress with the quests and I made a pull request.

It's not tested, but you can compile my .sp and test it.

The cvar added is "sm_contract_minimum_players_progress".

EDIT: I could't compile because I'm at work atm.
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// Contract.sp
//
// D:\New folder (5)\pk-v7 - Copy\csgo\addons\sourcemod\scripting\Contract .sp(459) : error 181: function argument named 'style' differs from prototype
// D:\New folder (5)\pk-v7 - Copy\csgo\addons\sourcemod\scripting\Contract .sp(6) : warning 203: symbol is never used: "g_cvarChatTag"
//
// 1 Error.
//
// Compilation Time: 1,28 sec
// ----------------------------------------

Press enter to exit ...


i cant compile i will wait you when u get from work
Zyten is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 04-26-2018 , 13:13   Re: [ANY] Contracts
Reply With Quote #229

Quote:
Originally Posted by Zyten View Post
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// Contract.sp
//
// D:\New folder (5)\pk-v7 - Copy\csgo\addons\sourcemod\scripting\Contract .sp(459) : error 181: function argument named 'style' differs from prototype
// D:\New folder (5)\pk-v7 - Copy\csgo\addons\sourcemod\scripting\Contract .sp(6) : warning 203: symbol is never used: "g_cvarChatTag"
//
// 1 Error.
//
// Compilation Time: 1,28 sec
// ----------------------------------------

Press enter to exit ...


i cant compile i will wait you when u get from work
I fixed the error when compiling.

At line 459 (my version) at this function:
PHP Code:
public void Shavit_OnFinish(int clientint stylefloat timeint jumpsint strafesfloat sync
change the "int style" to "BhopStyle style":
PHP Code:
public void Shavit_OnFinish(int clientBhopStyle stylefloat timeint jumpsint strafesfloat sync
Here is the fixed version for compiling.
Attached Files
File Type: sp Get Plugin or Get Source (Contract.sp - 105 views - 31.8 KB)
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
Zyten
Senior Member
Join Date: Jan 2018
Old 04-26-2018 , 15:57   Re: [ANY] Contracts
Reply With Quote #230

"new contracts" work but now the contracts dosent progress xD at all thou . plock havent tested your plugin yet as i have that problem

i did also notice sm_resetcontract dosent remove ppl contracts just reset database so u always stuck on the contract and this case its cant be done

Last edited by Zyten; 04-26-2018 at 16:02.
Zyten 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 08:01.


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