(HELP) comande with timer
#1

hi all . i would like to know how can i make a /comand that we wan us every (5min) for example
is that posible to make somethink like that
Quote:

forward searchgun();

public OnPlayerCommandText(playerid, cmdtext[])
Quote:

if(strcmp(cmd, "/searchgun", true) == 0)
{
SetTimer("searchgun", 300000,false);
}

public searchgun()
Quote:

public searchgun()
{
SendClientMessage(playerid,YELLOW,"you have found a gun / ammo");
GivePlayerWeapon(playerid,22,100);
}
}

so can some one help me to corect that if ther is any error pls ?
Reply


Messages In This Thread
(HELP) comande with timer - by Amine_Mejrhirrou - 02.02.2011, 12:05
Re: (HELP) comande with timer - by Steven Paul - 02.02.2011, 12:12
AW: (HELP) comande with timer - by !Phoenix! - 02.02.2011, 12:32
Re : (HELP) comande with timer - by Amine_Mejrhirrou - 02.02.2011, 12:58
Re: (HELP) comande with timer - by alpha500delta - 02.02.2011, 13:18
AW: (HELP) comande with timer - by !Phoenix! - 02.02.2011, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)