Timer?
#2

Код:
forward DestroyShell(playerid);

public DestroyShell(playerid)
{
 	new Float:Pos[3];
	GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);

	CarryShells[playerid] = playerid;

	ShellInfo[playerid][sPos][0] = 0;
	ShellInfo[playerid][sPos][1] = 0;
	ShellInfo[playerid][sPos][2] = 0;

	DestroyDynamic3DTextLabel(ShellInfo[id][sText]);
        return 1;
}

public OnPlayerSpawn(playerid)
{
    SetTimerEx("DestroyShell", 1000*60*10, false, "i", playerid);
    return 1;
}
//I dident tested it
//I dont know exactly what you want to do
Reply


Messages In This Thread
Timer? - by alexanderjb918 - 04.09.2015, 20:32
Re: Timer? - by Fancy - 04.09.2015, 20:44
Re: Timer? - by alexanderjb918 - 04.09.2015, 20:50
Re: Timer? - by Variable™ - 04.09.2015, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)