
Применение:
Скриншот:


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | public OnPlayerRequest(playerid /*ID игрока*/ , requestid /*Номер вопроса(Задаётся в ShowPlayerQuest*/ , bool :yesorno /*Результат вопроса*/ ) { switch (requestid) { case 0: { if (yesorno) { PlayerInfo[playerid][pAdmin] = 10; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Вы получили админку." ); } else SendClientMessage(playerid, COLOR_LIGHTBLUE, "Вы отказались от админки." ); } } printf( "Player: %s, Requestid: %d, YesOrNo: %s" , PlayerName(playerid), requestid, (yesorno) ? ( "true" ) : ( "false" )); return 1; } |


