27.04.2014, 21:34
If you are using something like SmokeCommand[playerid] = 1 it would be...
CMD
topsmoking(playerid, params[])
{
if(SmokeCommand[playerid] == 0) return SendClientMessage(playerid, -1, "You're not even smoking...");
SmokeCommand[playerid] = 0;
SendClientMessage(playerid, -1, "You have stopped smoking.");
return 1;
}
Then stop the timer.
CMD
topsmoking(playerid, params[]){
if(SmokeCommand[playerid] == 0) return SendClientMessage(playerid, -1, "You're not even smoking...");
SmokeCommand[playerid] = 0;
SendClientMessage(playerid, -1, "You have stopped smoking.");
return 1;
}
Then stop the timer.

