31.10.2012, 12:07
i got an bf3 server please help
new i need an dialog i have but i need like this
https://sampwiki.blast.hk/wiki/OnDialogResponse'
but i dont know how to make
and it will go to all ranks please help
Please help me guys
new i need an dialog i have but i need like this
https://sampwiki.blast.hk/wiki/OnDialogResponse'
but i dont know how to make
and it will go to all ranks please help
Код:
Код:public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 110) //i just entered id 110 { if(response) // If they clicked 'Yes' or pressed enter { //checks player score //gives him the weapons } return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText. } return 0; // You MUST return 0 here! Just like OnPlayerCommandText. }
Код:
//Classes #define SNIPER_CLASS 1 //you need score 10 #define SOLDIER_CLASS 2 //this one 0 #define PYROMAN_CLASS 3 // 350 #define SPY_CLASS 4 //250 #define GUNNER_CLASS 5 //10000 #define MEDIC_CLASS 7 //0 #define ENGINEER_CLASS 8// 540
Код:
CMD:classes(playerid, params[]) { ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Classes", "Soldier\nMedic\nSpy\nGunner\nPyroman\nSniper\nEngineer\nPilot", "Ok", ""); SendClientMessage(playerid, RED, "-------------------------------"); SendClientMessage(playerid, GREEN, "This are the classes"); SendClientMessage(playerid, GREEN, "Soldier"); SendClientMessage(playerid, GREEN, "Medic"); SendClientMessage(playerid, GREEN, "Spy"); SendClientMessage(playerid, GREEN, "Gunner"); SendClientMessage(playerid, GREEN, "Pyroman"); SendClientMessage(playerid, GREEN, "Sniper"); SendClientMessage(playerid, GREEN, "Engineer"); SendClientMessage(playerid, RED, "-------------------------------"); return 1; }