KillTimer
#1

hi guys i want kill this Timer pls help
Код:
CMD:vname(playerid, params[])
{
new id;
if(AccInfo[id][Vip] == 1)
SetTimer("name1",800,1);
else return SendClientMessage(playerid,0xFF0000AA,"You need to be VIP.");
return 1;
}
Reply
#2

PHP код:
new mytimer[MAX_PLAYERS];
CMD:vname(playeridparams[])
{
new 
id;
if(
AccInfo[id][Vip] == 1)
mytimer[playerid] = SetTimer("name1",800,1);
else return 
SendClientMessage(playerid,0xFF0000AA,"You need to be VIP.");
return 
1;
}
// later KillTimer(mytimer[playerid]); 
Reply
#3

Thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)