05.06.2017, 16:09
(
Последний раз редактировалось ThomasEvil; 05.06.2017 в 16:54.
)
Код HTML:
new pPickup[600]; new bool:RED1 = false; new bool:BLUE1 = false; forward DestroyTimer1(); public DestroyTimer1() { DestroyPickup(pPickup[500]); } public OnGameModeInit() { //code before deleted// pPickup[200] = CreatePickup(1212,19,-559.5560,-1480.1361,9.3424,0); //same// } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) //code before deleted// case BROKENPICKUP: { if(response) { if(PlayerInfo[playerid][pSomething] >= 10) { PlayerInfo[playerid][pSomething] -= 10; DestroyPickup(pPickup[499]);//RED1 RED1 = true; BLUE1 = false; pPickup[500] = CreatePickup(1272,1,2453.7996,-1713.3177,13.6317,0); //BLUE1 SetTimer("DestroyTimer1", 10000*60, false); //timer for destroy pickup 500 in 10 minutes } else { SendClientMessage(playerid, 0xFFFFFFFF, "some text"); } } } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pPickup[200]) DestroyPickup(pPickup[24]), GivePlayerMoney(playerid, 10000),SendClientMessage(playerid, 0xFFFFFFFF,"text"),SetTimer("mytimer", 1800000, 1); if(pickupid == pPickup[500]) { if(BLUE1 == false) { ShowPlayerDialog(playerid, BROKENPICKUP, DIALOG_STYLE_MSGBOX, "text","text", "yes",""); BLUE1 = true; } } return 1; }