Quote:
Originally Posted by [NWA]Hannes
pawn Код:
//At your global variables new HasPlayerUserGarageCommand[MAX_PLAYERS];
//Under OnPlayerConnect HasPlayerUserGarageCommand[MAX_PLAYERS] = 0;
//When the played uses the command if(HasPlayerUserGarageCommand[playerid] == 0) { HasPlayerUserGarageCommand[playerid] = 1; SetTimerEx("GarageCommandCooldown", YourTimerInMilliseconds, false, "i", playerid); //Garage stuff here } else return SendClientMessage(playerid, PutYourOwnColourHere, "Put your message here");
//Somewhere in your script forward GarageCommandCooldown(playerid); public GarageCommandCooldown(playerid) { HasPlayerUserGarageCommand[playerid] = 0; return 1; }
Just edit "YourTimerInMilliseconds", "PutYourOwnColourHere" and "Put your message here" to your own stuff..
|
I don't understand what's the HasPlayerUserGarageCommand is for.