16.01.2013, 15:26
That's easy but you have to think a little bit.
At first write down what dou you need
1. Command with parameter
2. A Timer which repeat every minute
3. You need a global 1d array for each player
4. if statement with IsPlayerInRangOfPoint
Know what do you want to use
1. Command (strcmp , YCMD , ZCMD ...)
2. Get the parameter (sscanf , strtok...)
Know How it should work now
1. Player use this command
2. get the value from the parameter as parktime
3. Timer should reduce the value from the player each minute
Then start with scripting your command
At first write down what dou you need
1. Command with parameter
2. A Timer which repeat every minute
3. You need a global 1d array for each player
4. if statement with IsPlayerInRangOfPoint
Know what do you want to use
1. Command (strcmp , YCMD , ZCMD ...)
2. Get the parameter (sscanf , strtok...)
Know How it should work now
1. Player use this command
2. get the value from the parameter as parktime
3. Timer should reduce the value from the player each minute
Then start with scripting your command