Jurajvocny 0 Odesláno: 4. Prosinec, 2015 Share Odesláno: 4. Prosinec, 2015 Ahojte. Ja by som sa chcel opýtať ako sa dá spraviť príkaz /zivot ale použiť ho možno len raz za 1 min. Ďakujem. Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 4. Prosinec, 2015 Share Odesláno: 4. Prosinec, 2015 je hodně typu.. dám ti jich pár. #include ZCMD #undef MAX_PLAYERS #define MAX_PLAYERS 50 new Heal[MAX_PLAYERS]; forward MuzesZnova(playerid); public MuzesZnova(playerid) { Heal[playerid] = 0; SendClientMessage(playerid,-1,"Opět můžeš použít příkaz /heal !"); } CMD:heal(playerid) { if(Heal[playerid] == 1) return SendClientMessage(playerid,-1,"Nemůžeš použít tento příkaz! až po jedné minutě!"); Heal[playerid] = 1; SetTimerEx("MuzesZnova",1000*60,0,"i",playerid); SendClientMessage(playerid,-1,"Uzdravil jste se!"); SetPlayerHealth(playerid,100); return true; } Druhý typ CMD:heal(playerid) { if(gettime() < GetPVarInt(playerid, "OmezeniPrikazu")) return SendClientMessage(playerid,-1,"Nemůžeš použít tento příkaz! až po jedné minutě!"); SetPVarInt(playerid, "OmezeniPrikazu", gettime() + 60); SendClientMessage(playerid,-1,"Uzdravil jste se!"); SetPlayerHealth(playerid,100); return true; } Link to comment Share on other sites More sharing options...
0 Jurajvocny 0 Odesláno: 4. Prosinec, 2015 Author Share Odesláno: 4. Prosinec, 2015 ok diki Link to comment Share on other sites More sharing options...
Dotaz
Jurajvocny 0
Ahojte. Ja by som sa chcel opýtať ako sa dá spraviť príkaz /zivot ale použiť ho možno len raz za 1 min.
Ďakujem.
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now