26.12.2014, 22:24
Hello, I made a cute minigame.. and I need your help guys..
1.) I set that When you type this command you will win 10,000$
How do I set that the player who type this will win random prize..
for example.. once he'll win 10,000$
second time he will win Drugs, Materials, Weapons.. etc
Because I don't want it to be just money..
2.) How do I set Timer to this command?
for example, I want that the player will be able to use this command once a hour..
1.) I set that When you type this command you will win 10,000$
How do I set that the player who type this will win random prize..
for example.. once he'll win 10,000$
second time he will win Drugs, Materials, Weapons.. etc
Because I don't want it to be just money..
Код:
CMD:parkourprize(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 3, -136.100921, 2145.677246, 292.571868)) { SetPlayerPos(playerid, 1756.725952, -1770.319335, 17.227943); SetPlayerVirtualWorld(playerid, 0); SetPlayerHealth(playerid, 100); GivePlayerCash(playerid, 10000); SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you won 10,000$"); StopAudioStreamForPlayer(playerid); return 1; } }
for example, I want that the player will be able to use this command once a hour..