AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to hook it? (https://forums.alliedmods.net/showthread.php?t=210618)

Podarok 03-12-2013 16:46

How to hook it?
 
Let's say I want to allow players use a certain cmd every 4th map. If this command is used, there will be shown a poll (e.g. Are you happy? #Yes #No). If > playesr choose Yes a map will change to de_morehappymap. After that map I want to disable players using the cmd which shows up a poll, they are allowed to use that cmd only after 3 maps have passed since that de_morehappymap. How can I hook how many maps have passed since some certain map?

YamiKaitou 03-12-2013 16:49

Re: How to hook it?
 
You don't. You have to use some sort of saving method to track it. Vault, CVAR, SQLite, etc work

Podarok 03-12-2013 16:52

Re: How to hook it?
 
But doesnt a galileo (powerful map manager) plugin have this function? Something like you cant nominate a map which has just been...

YamiKaitou 03-12-2013 17:10

Re: How to hook it?
 
Look at the code and find out how it does it then


All times are GMT -4. The time now is 21:45.

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