Posts: 65
Threads: 9
Joined: Feb 2009
Reputation:
0
Well, i was wondering if i could have a command like Givefirearms,
Dcmd givefirearms,
And it will give you firearms, and you can only use this command every hour?
please help
Posts: 65
Threads: 9
Joined: Feb 2009
Reputation:
0
No, i dont use GM, its a self made one
Posts: 3,262
Threads: 30
Joined: Aug 2008
Reputation:
0
Make a command and set a timer of using it once per hour.
Posts: 65
Threads: 9
Joined: Feb 2009
Reputation:
0
yeah, where would i place the command,
OnGameModeInit
SetTimer("giveweapons",600000,true);
OnPlayerCommandText
{
dcmd(giveweapons, 11, cmdtext);
return 0;
}
dcmd_giveweapons(playerid, params[])
{
?
You can pic what gun and it gives you 200 ammo bullets of it
Posts: 3,262
Threads: 30
Joined: Aug 2008
Reputation:
0
Why in OnGameModeInit you set the timer, you want the time to start when player writes the command, don't you?
Posts: 65
Threads: 9
Joined: Feb 2009
Reputation:
0
Can you maske the command fo me please
Posts: 3,262
Threads: 30
Joined: Aug 2008
Reputation:
0
No, it's not Script Request Thread.