Question| How...???
#7

to stop the timer?

Top of script:

Код:
new KillCountDown;
Код:
 if(strcmp(cmdtext, "/counter", true) == 0)
 {
 if(IsPlayerConnected(playerid))
 {
 	new tmpcar = GetPlayerVehicleID(playerid) - 1;
	if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 5)
	{
	if(!IsPlayerInAnyVehicle(playerid))
 	{
 	SendClientMessage(playerid, COLOR_VEH, " You are not in a car.");
	return 1;
 	}
	if(DynamicCars[tmpcar][FactionCar] != PlayerInfo[playerid][pFaction])
	{
	SendClientMessage(playerid, COLOR_VEH, " You are not in a faction vehicle.");
	return 1;
	}
	PlayerActionMessage(playerid,15.0,"turns on the counter.");
	KillCountDown = SetTimer("countdown",500,0);
	}
	}
	else
	{
	SendClientMessage(playerid, COLOR_VEH, "Invalid Faction.");
	return 1;
	}}
for the command you wanna stop it with use:

Код:
KillTimer(KillCountDown);
Reply


Messages In This Thread
Question| How...??? - by [Sk]Noob - 29.07.2009, 11:34
Re: Question| How...??? - by MachineHead - 29.07.2009, 11:35
Re: Question| How...??? - by [Sk]Noob - 29.07.2009, 11:37
Re: Question| How...??? - by pagie1111 - 29.07.2009, 11:44
Re: Question| How...??? - by Dj_maryo1993 - 29.07.2009, 11:51
Re: Question| How...??? - by [Sk]Noob - 29.07.2009, 12:02
Re: Question| How...??? - by pagie1111 - 29.07.2009, 12:05
Re: Question| How...??? - by [Sk]Noob - 29.07.2009, 12:28
Re: Question| How...??? - by [Sk]Noob - 29.07.2009, 12:32
Re: Question| How...??? - by D3nnis - 29.07.2009, 12:35

Forum Jump:


Users browsing this thread: 2 Guest(s)