07.04.2010, 15:51
Ok and for my minigame what goes where? i got somewhat lost trying to install it.
here is where i put the codes when the player accepts the Random DM notice.
and here is the fuction "END" Witch is called when the minigame is over.
here is where i put the codes when the player accepts the Random DM notice.
Код:
if(dialogid == 3) { if(response) { new rand = random(sizeof(DDM)); MiniGame[playerid] = 1; SetTimer("END",60000,3); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,27,500); GivePlayerWeapon(playerid,30,500); SetPlayerPos(playerid,DDM[rand][0],DDM[rand][1],DDM[rand][2]); SetPlayerDrunkLevel(playerid,50000); } else { SendClientMessage(playerid,COLOR_RED,"Fine be that way ..."); } return 1; }
Код:
public END() { for(new i=0; i<MAX_PLAYERS; i++) KillTimer(3); for(new i=0; i<MAX_PLAYERS; i++) SetPlayerPos(i,2087.1794,1448.4274,10.8203); for(new i=0; i<MAX_PLAYERS; i++) MiniGame[i] = 0; for(new i=0; i<MAX_PLAYERS; i++) RPW(i); for(new i=0; i<MAX_PLAYERS; i++) SetPlayerDrunkLevel(i,0); for(new i=0; i<MAX_PLAYERS; i++) GivePlayerMoney(i,5000); }