16.04.2014, 12:01
PHP Code:
new RobT[MaxPlayers];
CMD:Rob(playerid,params[])
{
//the rob command ....
RobT[playerid] = SetTimerEx("RobCheck", 500, true, "i", playerid);
}
forward RobCheck(playerid);
public RobCheck(playerid)
{
if(IsRobbing)
{
if(!isinrangeof.....)
{
setPlayerHealth(playerid,0.0);
KillTimer(RobT[playerid]);
}
}
}