10.07.2013, 18:21
Normally I got my own server scripter to help me if needed, currently he is on a 3 day trip so I need someone to help me out. Its really easy if you know it.. I don't so yeah.
This is my actuall first time scripting. I just want to know if you are able to make a delay/time of receiving money.
Lets say I type a command /Money and I want it to get it after 5 minutes.
This is what I know and can do myself, just want to know how to add that one line(or multiple) to make it receive after 5mins.
Here is an example I just made:
This is not the actuall command I'm using, this is just a easier one to make clear what I mean.
I know that COLOR_RED wont work without having it defined, I do have it defined in my actuall script.
If you can help me, please do.
Thanks for your time.
- Verth.
This is my actuall first time scripting. I just want to know if you are able to make a delay/time of receiving money.
Lets say I type a command /Money and I want it to get it after 5 minutes.
This is what I know and can do myself, just want to know how to add that one line(or multiple) to make it receive after 5mins.
Here is an example I just made:
pawn Код:
if (strcmp("/money", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_RED,"You will receive the money in 5 MINUTES.");
// WHAT HERE?
GivePlayerMoney(playerid, 25000);
}
I know that COLOR_RED wont work without having it defined, I do have it defined in my actuall script.
If you can help me, please do.
Thanks for your time.
- Verth.