by refer this
http://rathena.org/w..._delay_when_hit
maybe you can try it like this..
doesnt sure this will work or not.....
open src/map/pc.h
find:
unsigned int canuseitem_tick; // [skotlex]
then add below:
unsigned int pvpdelay_tick;
open src/map/pc.c
find:
sd->canuseitem_tick = tick;
then add below:
sd->pvpdelay_tick = tick;
open src/map/atcommand.c
find:
ACMD_FUNC(pvpon)
then add this inside the function:
unsigned int tick = gettick();
int delaytick = ( 15 * 60000 ); //This is the delay in milliseconds you can set what ever delay you want
sd->pvpdelay_tick = tick+delaytick; //This is the timer
find:
ACMD_FUNC(pvpoff)
then add this inside the function:
unsigned int tick = gettick();
We are still in the @pvpoff function
scroll down until you find this inside the function:
nullpo_retr(-1, sd);
then add below:
if(DIFF_TICK(sd->pvpdelay_tick,tick)>0)
{
//This is for computing the delay if the cooldown or delay is not yet finish restrict using @pvpoff
clif_displaymessage(fd,"There is a 15 minutes delay in using @off command");
return 0;
}