forked from shanapu/MyJailShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththread.txt
588 lines (482 loc) · 30.3 KB
/
thread.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
[URL="https://github.com/shanapu/MyJailShop/stargazers"][IMG]https://img.shields.io/github/stars/shanapu/MyJailShop.svg?style=flat-square[/IMG][/url]
[URL="https://forums.alliedmods.net/showthread.php?p=2459493&nojs=1#goto_threadrating"]Rate Thread [IMG]https://forums.alliedmods.net/images/misc/menu_open.svg[/IMG][IMG]https://forums.alliedmods.net/images/rating/rating_5.svg[/IMG][/URL]
[SIZE="5"][B]MyJailShop[/B][/SIZE] a redux rewrite of [URL="https://forums.alliedmods.net/showthread.php?t=247917"]Dkmuniz Jail Shop[/URL]
MyJailShop provide you a high customizable shop with credits system intended for jailbreak server.
Earn credits for playtime, kills, your team won rounds &/or you reach last request.
[B][u]Shop Items:[/u][/B]
[u]Guards & prisoner / CT & T - both:[/u]
[LIST]
[*][B]Heal up to 100HP[/B]
[*][B]Armor & extra HP[/B]
[*][B]Revive / respawn[/B]
[*][B]Bunny Hop[/B]
[*][B]Froggy Jump / double jump[/B]
[*][B]Low Gravity[/B]
[*][B]No Damage / Immortal[/B]
[*][B]Wallhack for x sec.[/B] (optional - need CustomPlayerSkins)
[*][B]Jetpack[/B]
[/LIST]
[u]Prisoner / Terrorist - only:[/u]
[LIST]
[*][B]Open Cells[/B] (optional - need smartjaildoors)
[*][B]Vampire / +speed & HP for damage[/B]
[*][B]Invisible for x sec.[/B]
[*][B]No Clip for x sec.[/B]
[*][B]Paperclips for handcuffs[/B]
[*][B]Fake Guard Model[/B]
[*][B]Teleport smoke[/B]
[*][B]Poison smoke[/B]
[*][B]Fire Grenade[/B]
[*][B]One bullet AWP[/B]
[*][B]Seven bullets deagle[/B]
[*][B]One hit Knife[/B]
[*][B]Throw One hit Knife[/B]
[*][B]Three bullets Taser[/B]
[*][B]Molotov & flashs[/B]
[*][B]Be a Bird[/B]
[*][B]Blackout[/B]
[*][B]Open door in sight[/B]
[*][B]Jihad[/B]
[/LIST]
[B][u]Features:[/u][/B]
[LIST]
[*]SourcePawn Transitional Syntax 1.7
[*]Multilingual support
[*]Use credit system of alternative stores/shops (zephyrus,frozdark,sm store)
[*]Console varibale for almost all features!
[*]Custom chat commands !mycommand
[*]Custom chat tags [jail.shop]
[*]Colors
[*]Natives & forwards - some gambling plugins coming soon!
[*]VIP flags for items
[*]great API to insert your own custom items
[*]some other fancy stuff
[/LIST]
[B][u]Commands & convars:[/u][/B]
[SPOILER]
[b]Commands:[/b]
[SPOILER]
[QUOTE]
[b]sm_jailshop[/b] - Open the jail shop menu
[b]sm_jailcredits[/b] - Show your jail shop credits
[b]sm_jailgift[/b] - Gift jail shop credits to a player - Use: [b]sm_jailgift <#userid|name> [amount]
[b]sm_revive[/b] - Use jail shop item revive
[b]sm_showjailcredits[/b] - Show jail shop credits of all online player
[/QUOTE]
set your own custom command. take a look at "[b]sm_jailshop_cmds_NAME[/b]"
[u]AdminCommands // ADMFLAG_ROOT[/u]
[QUOTE]
[b]sm_sale[/b] - Toggle Sale - discount all items
[b]sm_jailgive[/b] - Give jail shop credits to a player - Use: [b]sm_jailgive <#userid|name> [amount]
[b]sm_jailset[/b] - Set jail shop credits of a player - Use: [b]sm_jailgift <#userid|name> [amount]
[/QUOTE]
[/SPOILER]
[b]Shop Setting ConVars:[/b]
[SPOILER]
[QUOTE]
[b]sm_jailshop_version[/b] - The version of this MyJailShop SourceMod plugin
[b]sm_jailshop_enable[/b] - 0 - disabled, 1 - enable the MyJailShop SourceMod plugin
[b]sm_jailshop_credits_system[/b] - 1 - MyJailShop Credits, 0 - Zephrus store or 'SM Store' or FrozDark shop (need extra support plugin)
[b]sm_jailshop_credits_save[/b] - 0 - disabled, 1 - Save credits on player disconnect
[b]sm_jailshop_mysql[/b] - 0 - disabled, 1 - Should we use a mysql database to store credits
[b]sm_jailshop_credits_max[/b] - Maximum of credits to earn for a player
[b]sm_jailshop_minplayers[/b] - Minimum players to earn credits
[b]sm_jailshop_warmupcredits[/b] - 0 - disabled, 1 - enable players get credits on warmup
[b]sm_jailshop_credits_kill_t[/b] - Amount of credits a prisoner earns when kill a Guard
[b]sm_jailshop_credits_kill_t_vip[/b] - Amount of credits a VIP prisoner earns when kill a Guard
[b]sm_jailshop_credits_kill_ct[/b] - Amount of credits a guard earns when kill a prisoner
[b]sm_jailshop_credits_kill_ct_vip[/b] - Amount of credits a VIP guard earns when kill a prisoner
[b]sm_jailshop_credits_win_t[/b] - 0 - disabled, amount of credits a prisoner earns when win round
[b]sm_jailshop_credits_win_t_vip[/b] - 0 - disabled, amount of credits a VIP prisoner earns when win round
[b]sm_jailshop_credits_win_ct[/b] - 0 - disabled, amount of credits a guard earns when win round
[b]sm_jailshop_credits_win_ct_vip[/b] 0 - disabled, amount of credits a VIP guard earns when win round
[b]sm_jailshop_credits_win_alive[/b] 0 - disabled, 1 - only alive player get credits when team win the round
[b]sm_jailshop_credits_lr[/b] - Amount of credits for reach last request as prisoner (only if hosties is available)
[b]sm_jailshop_credits_lr_vip[/b] - Amount of credits for reach last request as prisoner (only if hosties is available)
[b]sm_jailshop_credits_time_interval[/b] - Time in seconds a player recieved credits per time
[b]sm_jailshop_credits_time[/b] - 0 - disabled, how many credits players receive for '[b]sm_jailshop_credits_time_interval'
[b]sm_jailshop_credits_time_vip[/b] - 0 - disabled, how many credits VIP players receive for '[b]sm_jailshop_credits_time_interval
[b]sm_jailshop_welcome[/b] - 0 - disabled, 1 - welcome messages on spawn
[b]sm_jailshop_notification[/b] - 0 - disabled, 1 - enable chat notification everytime player get credits
[b]sm_jailshop_buytime[/b] - 0 - disabled, Time in seconds after roundstart shopping is allowed
[b]sm_jailshop_buytime_cells[/b] - 0 - disabled, 1 - only shopping until cell doors opened (only if smartjaildoors is available)
[b]sm_jailshop_access[/b] - 0 - shop available for guards & prisoner, 1 - only prisoner
[b]sm_jailshop_myjb[/b] - 0 - disable shopping on MyJailbreak Event Days, 1 - enable shopping on MyJailbreak Event Days (only if myjb is available, show/gift/... credits is still enabled)
[b]sm_jailshop_close[/b] - 0 - disabled, 1 - enable close menu after action
[b]sm_jailshop_tag[/b] - Allow "MyJailShop" to be added to the server tags? So player will find servers with MyJailShop faster. it dont touch you sv_tags
[b]sm_jailshop_log[/b] - Allow MyJailShop to log purchases and gifts in logs/MyJailShop
[b]sm_jailshop_buy_lr[/b] - 0 - disabled, 1 - Restrict shopping on last request
[b]sm_jailshop_remove_lr[/b] - 0 - disabled, 1 - Remove the bought perks on a last request. (bought weapons stay)
[b]sm_jailshop_removeweapon[/b] - 0 - disabled, 1 - When a player already got a prim/sec weapon and buy deagle or awp the current weapon disappear
[b]sm_jailshop_sale_multi[/b] - How many percent discount on a sale!
[b]sm_jailshop_cmds_shop[/b] - Set your custom chat commands for shop menu(!jailshop (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
[b]sm_jailshop_cmds_gift[/b] - Set your custom chat commands for gifting credits(!jailgift (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
[b]sm_jailshop_cmds_revive[/b] - Set your custom chat commands for revive(!jailrevive (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
[b]sm_jailshop_cmds_credits[/b] - Set your custom chat commands to see you credits (!jailcredits (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
[b]sm_jailshop_cmds_showcredits[/b] - Set your custom chat commands for see all online players credits(!showjailcredits (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
[/QUOTE]
[/SPOILER]
[b]Shop Item ConVars:[/b]
[SPOILER]
[QUOTE]
[b]sm_jailshop_openjails_price[/b] - 0 - disabled, price of the 'Open jails' shop item (only if smartjaildoors is available)
[b]sm_jailshop_openjails_flag[/b] - Set flag for admin/vip must have to get access to open cells. No flag = is available for all players!
[b]sm_jailshop_heal_price[/b] - 0 - disabled, price of the 'Heal' shop item
[b]sm_jailshop_heal_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_heal_flag[/b] - Set flag for admin/vip must have to get access to heal. No flag = is available for all players!
[b]sm_jailshop_armor_hp_price[/b] - 0 - disabled, price of the 'Armor & HP' shop item
[b]sm_jailshop_health_extra[/b] - How many HP get extra with the armor
[b]sm_jailshop_health_extra_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_health_flag[/b] - Set flag for admin/vip must have to get access to health. No flag = is available for all players!
[b]sm_jailshop_revive_price[/b] - 0 - disabled, price of the 'Revive' shop item
[b]sm_jailshop_revive_flag[/b] - Set flag for admin/vip must have to get access to revive. No flag = is available for all players!
[b]sm_jailshop_heal_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_vampire_price[/b] - 0 - disabled, price of the 'Vampire' shop item
[b]sm_jailshop_vampire_speed[/b] - Ratio for how fast the player will walk (1 - normal)
[b]sm_jailshop_vampire_multiplier[/b] - Multiplier how many heatlh per damage (e.g. 100damage * 0.5 = 50HP extra)
[b]sm_jailshop_vampire_flag[/b] - Set flag for admin/vip must have to get access to vampire. No flag = is available for all players!
[b]sm_jailshop_bhop_price[/b] - 0 - disabled, price of the 'Bunny Hop' shop item
[b]sm_jailshop_bhop_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_bhop_flag[/b] - Set flag for admin/vip must have to get access to bhop. No flag = is available for all players!
[b]sm_jailshop_froggyjump_price[/b] - 0 - disabled, price of the 'Froggy Jump' shop item
[b]sm_jailshop_froggyjump_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_froggyjump_flag[/b] - Set flag for admin/vip must have to get access to froggyjump. No flag = is available for all players!
[b]sm_jailshop_gravity_price[/b] - 0 - disabled, price of the 'Low Gravity' shop item
[b]sm_jailshop_gravity_value[/b] - Ratio for Gravity (1.0 earth, 0.5 moon)
[b]sm_jailshop_gravity_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_gravity_flag[/b] - Set flag for admin/vip must have to get access to gravity. No flag = is available for all players!
[b]sm_jailshop_invisible_price[/b] - 0 - disabled, price of the 'Invisible' shop item
[b]sm_jailshop_invisible_time[/b] - Time in seconds how long the player is invisible
[b]sm_jailshop_invisible_flag[/b] - Set flag for admin/vip must have to get access to invisible. No flag = is available for all players!
[b]sm_jailshop_nodamage_price[/b] - 0 - disabled, price of the 'NoDamage' shop item
[b]sm_jailshop_nodamage_time[/b] - Time in seconds how long the player got nodamage
[b]sm_jailshop_nodamage_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_nodamage_flag - Set flag for admin/vip must have to get access to damage. No flag = is available for all players!
[b]sm_jailshop_noclip_price[/b] - 0 - disabled, price of the 'No Clip' shop item
[b]sm_jailshop_noclip_time[/b] - Time in seconds how long the player has noclip
[b]sm_jailshop_noclip_flag[/b] - Set flag for admin/vip must have to get access to noclip. No flag = is available for all players!
[b]sm_jailshop_wallhack_price[/b] - 0 - disabled, price of the 'Wallhack' shop item (only if CustomPlayerSkins is available)
[b]sm_jailshop_wallhack_time[/b] - Time in seconds how long the player has wallhack
[b]sm_jailshop_wallhack_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_wallhack_flag[/b] - Set flag for admin/vip must have to get access to wallhack. No flag = is available for all players!
[b]sm_jailshop_bird_price[/b] - 0 - disabled, price of the 'Be a Bird' shop item
[b]sm_jailshop_bird_mode[/b] - 1 - Chicken / 2 - Pigeon / 3 - Crow
[b]sm_jailshop_bird_flag[/b] - Set flag for admin/vip must have to get access to bird. No flag = is available for all players!
[b]sm_jailshop_fakeguard_price[/b] - 0 - disabled, price of the 'Fake guard model' shop item
[b]sm_jailshop_fakeguard_model[/b] - Path to the model for fake guard.
[b]sm_jailshop_fakeguard_flag[/b] - Set flag for admin/vip must have to get access to fake model. No flag = is available for all players!
[b]sm_jailshop_teleportsmoke_price[/b] - 0 - disabled, price of the 'Teleport smoke' shop item
[b]sm_jailshop_teleportsmoke_flag[/b] - Set flag for admin/vip must have to get access to teleport smoke. No flag = is available for all players!
[b]sm_jailshop_poisonsmoke_price[/b] - 0 - disabled, price of the 'Poison smoke' shop item
[b]sm_jailshop_poisonsmoke_flag[/b] - Set flag for admin/vip must have to get access to Poison Smoke. No flag = is available for all players!
[b]sm_jailshop_firehe_price[/b] - 0 - disabled, price of the 'Fire Grenade' shop item
[b]sm_jailshop_firehe_flag[/b] - Set flag for admin/vip must have to get access to firehe. No flag = is available for all players!
[b]sm_jailshop_awp_price[/b] - 0 - disabled, price of the 'One bullet AWP' shop item
[b]sm_jailshop_awp_flag[/b] - Set flag for admin/vip must have to get access to awp. No flag = is available for all players!
[b]sm_jailshop_deagle_price[/b]- 0 - disabled, price of the '7 bullets Deagle' shop item
[b]sm_jailshop_deagle_flag[/b] - Set flag for admin/vip must have to get access to deagle. No flag = is available for all players!
[b]sm_jailshop_knife_price[/b] - 0 - disabled, price of the 'One hit knife' shop item
[b]sm_jailshop_knife_flag[/b] - Set flag for admin/vip must have to get access to knife. No flag = is available for all players!
[b]sm_jailshop_throw_knife_price[/b] - 0 - disabled, price of the 'Throwing one hit knife' shop item
[b]sm_jailshop_throw_knife_count[/b] - how many knifes a prisoner can throw
[b]sm_jailshop_throw_knife_flag[/b] - Set flag for admin/vip must have to get access to throw knife. No flag = is available for all players!
[b]sm_jailshop_taser_price[/b] - 0 - disabled, price of the '3 bullets Taser' shop item
[b]sm_jailshop_taser_flag[/b] - Set flag for admin/vip must have to get access to taser. No flag = is available for all players!
[b]sm_jailshop_molotov_price[/b] - 0 - disabled, price of the 'Molotov & flashs' shop item
[b]sm_jailshop_molotov_flag[/b] - Set flag for admin/vip must have to get access to molotov. No flag = is available for all players!
[b]sm_jailshop_paperclip_price[/b] - 0 - disabled, price of the 'PaperClips' shop item (only if myjb is available)
[b]sm_jailshop_paperclip_flag[/b] - "Set flag for admin/vip must have to get access to paperclip. No flag = is a
[b]sm_jailshop_paperclip_amount[/b] - Amount of paperclips a player get (only if myjb is available)
[b]sm_jailshop_randomtp[/b] - 0 - disable, price of the 'Random teleport' shop item
[b]sm_jailshop_randomtp_flag[/b] - Set flag for admin/vip must have to get accesso to RandomTP. No flag = is avaible for all players!
[/QUOTE]
[/SPOILER]
[b]Shop Item ConVars for extra plugins:[/b]
[SPOILER]
[QUOTE]
[b]sm_jailshop_jetpack_price[/b] - Price of the Jetpack perk
[b]sm_jailshop_jetpack_access[/b] - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_jetpack_flags[/b] - Set flag for admin/vip must have to get access to Jetpack. No flag = is available for all players!
[b]sm_jailshop_jetpack_reloadtime[/b] - Time in seconds to reload JetPack. 0 = One time use, no reload
[b]sm_jailshop_jetpack_boost[/b] - The amount of boost to apply to JetPack.
[b]sm_jailshop_jetpack_angle[/b] - The angle of boost to apply to JetPack.
[b]sm_jailshop_jetpack_max[/b] - Time in seconds of using JetPacks.
[b]sm_jailshop_jihad_price[/b] - Price of the Jihad bomb
[b]sm_jailshop_jihad_flags[/b] - Set flag for admin/vip must have to get access to jihad. No flag = is available for all players!
[b]sm_jailshop_standstill[/b] - 0 - disabled, 1 - standstill(cant move) on Activate bomb
[b]sm_jailshop_bomb_radius[/b] - Radius for bomb damage
[b]sm_jailshop_door_price[/b] - Price of the ViewDoor perk
[b]sm_jailshop_door_flags[/b] - Set flag for admin/vip must have to get access to view door. No flag = is available for all players!
[b]sm_jailshop_blackout_price[/b] - Price of the Blackout perk
[b]sm_jailshop_blackout_flags[/b] - Set flag for admin/vip must have to get access to blackout. No flag = is available for all players!
[b]sm_jailshop_blackout_time[/b] - How many seconds the blackout should be?
[/QUOTE]
[/SPOILER]
[/SPOILER]
[U][B]Supports optional plugins:[/B][/U]
[LIST]
[*][url=https://forums.alliedmods.net/showthread.php?t=283212]MyJailbreak[/url] - dis/enable shopping on MyJailbreak Event Days
[*][url=https://forums.alliedmods.net/forumdisplay.php?f=155]Hosties 2[/url] - earn credits as prisoner for reach the last request
[*][url=https://forums.alliedmods.net/showthread.php?t=264100]Smart Jail Doors[/url] - needed for shop item - Open Jail Doors
[*][url=https://forums.alliedmods.net/showthread.php?t=240703]CustomPlayerSkins[/url] - needed for shop item - Wallhackshowthread.php?t=264100]Smart Jail Doors[/url] - needed for shop item - Open Jail Doors
[*][url=https://forums.alliedmods.net/showthread.php?p=2442992]TeamGames[/url] - remove for item perks on a team game
[/LIST]
[U][B]Supports 3rd party shop/stores credit systems[/B][/U] - use sm_jailshop_credits_system "0"
[LIST]
[*][url=https://forums.alliedmods.net/showthread.php?t=276677][ANY] Store by Zephyrus[/url] - use api plugin: zephyrus-store.smx
[*][url=https://forums.alliedmods.net/showthread.php?t=255418]Sourcemod Store[/url] - use api plugin: myjailshop-sm-store.smx
[*][url=http://hlmod.ru/resources/shop-core.182/]Shop by FrozDark[/url] - use api plugin: myjailshop-frozdark-shop.smx
[/LIST]
[U]Include files needed for compile[/U][SPOILER]
[LIST]
[*]autoexecconfig.inc [url]https://forums.alliedmods.net/showthread.php?t=204254[/url]
[*]colors.inc [url]https://forums.alliedmods.net/showthread.php?t=96831[/url]
[*]emitsoundany.inc [url]https://forums.alliedmods.net/showthread.php?t=237045[/url]
[*]myjailshop.inc [url]https://github.com/shanapu/MyJailShop/blob/master/addons/sourcemod/scripting/include/myjailshop.inc[/url]
[*]myjailbreak.inc [url]https://github.com/shanapu/MyJailbreak/blob/master/addons/sourcemod/scripting/include/myjailbreak.inc[/url]
[*]mystocks.inc [url]https://github.com/shanapu/MyJailbreak/blob/master/addons/sourcemod/scripting/include/mystocks.inc[/url]
[*]smartjaildoors.inc [url]https://forums.alliedmods.net/showthread.php?p=2306289[/url]
[*]CustomPlayerSkins.inc [url]https://forums.alliedmods.net/showthread.php?t=240703[/url]
[*]myicons.inc [url]https://github.com/shanapu/MyJailbreak/blob/master/addons/sourcemod/scripting/include/myicons.inc[/url]
[/LIST]
[/SPOILER]
[B][U]Natives & forwards[/B][/U]
[SPOILER]
myjailshop.inc
[php]
/*********************************************************
* Called when a client get credits and sm_jailshop_credits_system "0"
*
* @param client The client who get the credits
* @Return The credits of the client
*********************************************************/
forward int MyJailShop_OnGetCredits(int client);
/*********************************************************
* Called when a client should remove his items
*
* @param client The client to reset
* @NoReturn
*********************************************************/
forward void MyJailShop_OnResetPlayer(int client);
/*********************************************************
* Called when a clients credits are set and sm_jailshop_credits_system "0"
*
* @param client The client who get the credits
* @param Credits Amount of credits
* @NoReturn
*********************************************************/
forward void MyJailShop_OnSetCredits(int client, int NewCreditsAmount);
/*********************************************************
* Called when a client get credits
*
* @param client The client who get the credits
* @param extraCredits Amount of credits
* @NoReturn
*********************************************************/
forward void MyJailShop_OnPlayerGetCredits(int client, int extraCredits);
/*********************************************************
* Called when a client buy an item
*
* @param client The client who bought the item
* @param item The name of the item.
* @NoReturn
*********************************************************/
forward void MyJailShop_OnPlayerBuyItem(int client, char[] item);
/*********************************************************
* Called after the shop menu is built, but before it's displayed.
* This is where you can add custom shopitem. See MyJailShop_OnShopMenuHandler
*
* @param client client Player's index.
* @param menu Menu being displayed to the client.
* @NoReturn
*********************************************************/
forward void MyJailShop_OnShopMenu(int client, Menu menu);
/*********************************************************
* Called once a shop menu item has been selected
* @param menu Menu displayed
* @param action Menu Action
* @param client client index
* @param itemNum selected item number
* @NoReturn
*********************************************************/
forward void MyJailShop_OnShopMenuHandler(Menu menu, MenuAction action, int client, int itemNum);
/*********************************************************
* Get the Credits of the client
*
* @param client The client to get the credits
* @Return The credits of the client
*********************************************************/
native int MyJailShop_GetCredits(int client);
/*********************************************************
* Set new Credits of the client
*
* @param client The client to set the credits
* @NoReturn
*********************************************************/
native void MyJailShop_SetCredits(int client, int newCredits);
/*********************************************************
* Is buytime - can player buy item or is shopping restricted
*
* @param none
* @true on buying allowed, false if not
*********************************************************/
native bool MyJailShop_IsBuyTime();
[/php]
[/SPOILER]
[U][B]Installation[/B][/U]
[QUOTE]
[LIST]
[*][B]OPTIONAL - PLUGINS[/B] - Make sure you have the [U]latest versions[/U] of the [B]optional plugins[/B]
[*]Download the [URL="https://github.com/shanapu/MyJailShop/releases"]latest release[/URL]
[*]Copy the folders [B]addons/[/B]&[B] cfg/[/B] to [U]your root[/U] [B]csgo/[/B] directory
[*]Run plugin for the first time and [U]all necessary .cfg files will be generated[/U]
[*]Restart your server
[*]Configure all settings in [U]cfg/MyJailShop[/U] to your needs
[/LIST]
[INDENT][LIST]
[*][B]OPTIONAL - MYSQL[/B] - need sm_jailshop_mysql "1"
Open your databases.cfg in your csgo/addons/sourcemod/configs directory and add the following content:
[php]
"MyJailShop"
{
"driver" "mysql"
"host" "127.0.0.1" //IP to your MySQL server
"database" "your_database_name" //database name
"user" "your_database_user" //database user
"pass" "your_database_password" //database password
}
[/php]
[/LIST][/INDENT]
[LIST]
[*]Restart your server
[*]Have fun! Give feedback!
[/LIST]
[/QUOTE]
[B][u]Latest Changes[/u][/B]
[QUOTE]
[b][1.4.0][/B] - API for custom shop items & some examples
[SPOILER]
[i]Added[/i]
[LIST]
[*]new item: Random Teleport - teleport to an random prisoner. thx hexer10!
[/LIST][INDENT][LIST]
[*]new cvar - sm_jailshop_randomtp - 0 disable, price of the 'Random teleport' shop item
[*]new cvar - sm_jailshop_randomtp_flag - Set flag for admin/vip must have to get accesso to RandomTP. No flag = is avaible for all players!
[/LIST][/INDENT][LIST]
[*]new shop item as extra plugin: Jetpack - (yes, make your own custom items! without editing MyJailShop.sp - see Developer stuff)
[/LIST][INDENT][LIST]
[*]new plugin - myjailshop_jetpack.smx
[/LIST][INDENT][LIST]
[*]new cvar - sm_jailshop_jetpack_price - Price of the Jetpack perk
[*]new cvar - sm_jailshop_jetpack_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[*]new cvar - sm_jailshop_jetpack_flags - Set flag for admin/vip must have to get access to Jetpack. No flag = is available for all players!
[*]new cvar - sm_jailshop_jetpack_reloadtime - Time in seconds to reload JetPack. 0 = One time use, no reload
[*]new cvar - sm_jailshop_jetpack_boost - The amount of boost to apply to JetPack.
[*]new cvar - sm_jailshop_jetpack_angle - The angle of boost to apply to JetPack.
[*]new cvar - sm_jailshop_jetpack_max - Time in seconds of using JetPacks.
[/LIST][/INDENT][/INDENT][LIST]
[*]new shop item as extra plugin: Jihad
[/LIST][INDENT][LIST]
[*]new plugin - myjailshop_jihad.smx
[/LIST][INDENT][LIST]
[*]new cvar - sm_jailshop_jihad_price - Price of the Jihad bomb
[*]new cvar - sm_jailshop_jihad_flags - Set flag for admin/vip must have to get access to jihad. No flag = is available for all players!
[*]new cvar - sm_jailshop_standstill - 0 - disabled, 1 - standstill(cant move) on Activate bomb
[*]new cvar - sm_jailshop_bomb_radius - Radius for bomb damage
[/LIST][/INDENT][/INDENT][LIST]
[*]new shop item as extra plugin: ViewDoor - open a door by viewing on it.
[/LIST][INDENT][LIST]
[*]new plugin - myjailshop_door.smx
[/LIST][INDENT][LIST]
[*]new cvar - sm_jailshop_door_price - Price of the ViewDoor perk
[*]new cvar - sm_jailshop_door_flags - Set flag for admin/vip must have to get access to view door. No flag = is available for all players!
[/LIST][/INDENT][/INDENT][LIST]
[*]new shop item as extra plugin: Blackout - darken the map for some time.
[/LIST][INDENT][LIST]
[*]new plugin - myjailshop_blackout.smx
[/LIST][INDENT][LIST]
[*]new cvar - sm_jailshop_blackout_price - Price of the Blackout perk
[*]new cvar - sm_jailshop_blackout_flags - Set flag for admin/vip must have to get access to blackout. No flag = is available for all players!
[*]new cvar - sm_jailshop_blackout_time - How many seconds the blackout should be?
[/LIST][/INDENT][/INDENT][LIST]
[/LIST]
[i]Changed[/i]
[LIST]
[*]Throwing knife no more team damage.
[*]Gravity: new way for Ladderfix
[*]NoClip: autoslay player when stuck.
[/LIST][INDENT][LIST]
[*]new cvar - sm_jailshop_noclip_stuck - 0 - disabled / 1 - kill player when stuck after noclip
[/LIST][/INDENT]
[i]Developer stuff[/i]
[LIST]
[*]new API to add custom item to shop! take a look to template plugins code of jetpack, jihad, doors & blackout
[/LIST][INDENT][LIST]
[*]new forward - MyJailShop_OnShopMenu(int client, Menu menu) - Called after the shop menu is built, but before it's displayed.
[*]new forward - MyJailShop_OnShopMenuHandler(Menu menu, MenuAction action, int client, int itemNum) - Called once a shop menu item has been selected
[*]new forward - MyJailShop_OnResetPlayer(int client) - Called when a client should remove his items
[*]new native - bool MyJailShop_IsBuyTime() - Is buytime? - can player buy item or is shopping restricted
[/LIST][/INDENT]
[/SPOILER]
[U][B]Full Change Log:[/B][/U]
[url=https://github.com/shanapu/MyJailShop/blob/master/CHANGELOG.md]CHANGELOG.md[/url]
[/QUOTE]
[B][u]Known Bugs[/u][/B]
[QUOTE]
[LIST]
[*]nothing known
[/LIST]
[i]you found a bug? tell me please![/i]
[/QUOTE]
[SIZE="3"][B][U]Credits:[/U][/B][/SIZE]
[B]All credits goes out to the original author [url=https://forums.alliedmods.net/member.php?u=230556]Dkmuniz[/URL][/B].
Also thanks to all sourcemod & metamod developers out there!
[SPOILER]
based/merged/used code/idea plugins:
* [url]https://forums.alliedmods.net/showthread.php?t=247917[/url]
* [url]https://forums.alliedmods.net/showthread.php?t=269846[/url]
* [url]https://github.com/popoklopsi/Stamm/blob/master/stamm_froggyjump.sp[/url]
* if I missed someone, please tell me!
* THANK YOU ALL!
[/SPOILER]
[SIZE="5"]THANKS FOR MAKING FREE SOFTWARE![/SIZE] :bacon!: :bacon!:
[U]Much Thanks: [/U]
Dkmuniz, Hexer10, Bchewy, Franc1sco, devu4, Weeeishy, Include1, KissLick, live4net, bacardi, TiBarification for testing & great ideas!
[rant]
[B][U]What should I consider if I open a issue on github or post on forum?[/U][/B]
[LIST]
[*]Read the issues on github & posts on forums thread - maybe your request was already posted there.
[*]Use descriptive topic titles & descriptions. "i have idea", "need Help", "Suggestion" or "don't work" isn't helpful & pleasant.
[*]Try to explain your request with [U][b]so many details as you can.[/b][/U]
[*][B]USE PROPER ENGLISH![/B]
[*]Expound every single step to reproduce your train of thought. [U]We're all no clairvoyant or mindreaders.[/U]
[*]Explain like "I'm an idiot and never I played MyJailbreak before".
[*]Maybe take a screenshot or make a beautiful picture with paint.
[*]Provide [U]so many infos as you can[/U]. Like your...
[/LIST][INDENT][LIST=1]
[*]sourcemod & metamod version
[*]MyJailbreak version
[*]sm plugins list server console output
[*]plugin configs (.cfg)
[*][U][B]error logs[/B][/U] from .../csgo/addons/sourcemod/logs directory
[*]all other things that could help us helping you!
[/LIST][/INDENT][LIST]
[*]Please open [U]one Issue[/U] per request/errors/problems. Split many requests/errors/problems to different Issues. Thanks!
[/LIST]
[COLOR="DarkRed"][B][U]If you are not capable to do this, I going to ignore you![/B][/U][/COLOR] sry
[/rant]
[B][U]Download release pack[/U][/B]
[url]https://shanapu.de/MyJailShop/[/url]
[B][U]Sourcecode & miscellaneous at github[/U][/B]
[url]https://github.com/shanapu/MyJailShop/[/url]
[URL="https://github.com/shanapu/MyJailShop/issues"][IMG]https://img.shields.io/github/issues-raw/shanapu/MyJailShop.svg?style=flat-square[/IMG][/url]
[U][B]Report Bugs, Ideas, Requests & see todo:[/B][/U]
[url]https://github.com/shanapu/MyJailShop/issues[/url]
[U][B]Code changes stable:[/B][/U]
[url]https://github.com/shanapu/MyJailShop/commits/master[/url]
[U][B]Changelogs:[/B][/U]
[url]https://github.com/shanapu/MyJailShop/blob/master/CHANGELOG.md[/url]
coded with [IMG]http://shanapu.de/githearth-small.png[/IMG] free software
[b]I would be happy and very pleased if you want to join this project as an equal collaborator.
Even if you are a beginner and willing to learn or you just want to [url=http://translator.mitchdempsey.com/users/378/sourcemod_plugins]help with translations.[/url][/b]
[SIZE="1"]you can donate if you like my work for the community...[/SIZE] [URL="https://www.paypal.me/shanapu"] [IMG]https://www.paypalobjects.com/webstatic/en_US/i/btn/png/silver-rect-paypal-26px.png[/IMG][/URL]