Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //DENTRO DE PUBLIC ONGAMEMODEINIT
- gun = LoadModelSelectionMenu("WeaponsMenu.txt"); //OBS CERTIFIQUE-SE DE TER O ARQUIVO WEAPONSMENU.TXT - CASO NECESSARIO EU ENVIO WILL
- //DEFINES - TOPO GM
- new gun = mS_INVALID_LISTID;
- //CMD para fabricação da arma
- command(fabricar, playerid, params[]){
- if(!params[0] || params[0] == '\1' || !params[1] ) return SCM(playerid, COLOR_GREY, "/fabricar [Arma]");
- if(!strcmp(params, "arma", true)) {
- ShowModelSelectionMenu(playerid, gun, "Fabricar Armas", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- return 1;
- }
- return true;
- }
- public OnPlayerModelSelection(playerid, response, listid, modelid)
- {
- if(listid == gun)
- {
- if(response)
- {
- switch(modelid)
- {
- case 346:
- {
- GameTextForPlayer(playerid, "~r~9 mm", 200, 1);
- GivePlayerWeapon(playerid, 22, 100);
- SendClientMessage(playerid,"Você fabricou uma colt 9mm e ela esta no final da máquina.");
- }
- case 347:
- {
- GivePlayerWeapon(playerid, 23, 80);
- GameTextForPlayer(playerid, "~r~Silinced 9mm", 200, 1);
- SendClientMessage(playerid,"Você fabricou uma Silinced 9mm e ela esta no final da máquina.");
- }
- case 348:
- {
- GivePlayerWeapon(playerid, 24, 80);
- GameTextForPlayer(playerid, "~r~Desert Eagle", 200, 1);
- SendClientMessage(playerid,"Você fabricou uma desert eagle e ela esta no final da máquina.");
- }
- }
- }
- return 1;
- }
- return 1;
- }
- //E ASSIM CONTINUARIA PARA TODAS AS ARMAS!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement