Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Deelay la comanda


Question

Posted (edited)

Salut, am si eu o dilema.Vreau sa fac un countdown/deelay la o comanda, (stiti la ce ma refer) si vreau sa ma uimiti, cum pot face altfel inafara de-a face un timer.Stiam pe 'samp.com' ca era o functie cu gettime si o varabile de [MAX_PLAYERS], daca stie cineva, poate sa-mi deie schita lui.Multumesc frumos!

Edited by Serbaq

2 answers to this question

Recommended Posts

  • 0
Posted
CMD:test(playerid, params[])
{
	if (timpComanda[playerid] > gettime())
		return SendClientMessage(playerid, -1, "Nu poti folosi comanda inca");

	// comanda

	timpCoamnda[playerid] = gettime() + timpInMilisecunde;
}

Ar veni cam asa ceva

  • Upvote 1
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.