Jump to content

Fallen0329

Membru
  • Posts

    129
  • Joined

  • Last visited

Everything posted by Fallen0329

  1. Ai incercat sa recompilezi gm-ul cu noul include de la streamer?
  2. mah la comanda aia iti lipsesc 2 sau 3 acolade... ai uitat sa le inchizi Uitate bine la comanda si nu mai adauga nimic pentru ca de asta iti apar erorile astea. Si tu asculti de toti care se baga inseama sa faca si ei un +1 EDIT: Uite te-am scutit de un efort sa nu iti folosesti capsorul ala prea mult ca dupa iese fum Aici e comanda buna, inlocuieste pe cea veche cu asta si incerca sa compilezi sa vezi tot erorile alea iti dau? [pawn] if(dialogid == slot1) { if(response) { if(listitem == 0) { PlayerInfo[playerid][pDGun1] = 24; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Desert Eagle Loading..."); OnPlayerUpdate(playerid); ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 1) { PlayerInfo[playerid][pDGun1] = 32; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Tec 9 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 2) { PlayerInfo[playerid][pDGun1] = 31; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " M4 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 3) { PlayerInfo[playerid][pDGun1] = 29; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Mp5 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 4) { PlayerInfo[playerid][pDGun1] = 30; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Ak47 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 5) { PlayerInfo[playerid][pDGun1] = 33; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Country Rifle Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 6) { PlayerInfo[playerid][pDGun1] = 28; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Micro SMG Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 7) { PlayerInfo[playerid][pDGun1] = 25; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shotgun Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 8) { PlayerInfo[playerid][pDGun1] = 4; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Knife Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 9) { PlayerInfo[playerid][pDGun1] = 5; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Bat Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 10) { PlayerInfo[playerid][pDGun1] = 6; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shovel Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 11) { PlayerInfo[playerid][pDGun1] = 8; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Katana Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 12) { PlayerInfo[playerid][pDGun1] = 23; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " SPistol Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } } return 1; } if(dialogid == slot2) { if(response) { if(listitem == 0) { PlayerInfo[playerid][pDGun2] = 24; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Desert Eagle Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 1) { PlayerInfo[playerid][pDGun2] = 32; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Tec 9 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 2) { PlayerInfo[playerid][pDGun2] = 31; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " M4 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 3) { PlayerInfo[playerid][pDGun2] = 29; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Mp5 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 4) { PlayerInfo[playerid][pDGun2] = 30; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Ak47 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 5) { PlayerInfo[playerid][pDGun2] = 33; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Country Rifle Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 6) { PlayerInfo[playerid][pDGun2] = 28; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Micro SMG Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 7) { PlayerInfo[playerid][pDGun2] = 25; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shotgun Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 8) { PlayerInfo[playerid][pDGun1] = 4; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Knife Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 9) { PlayerInfo[playerid][pDGun1] = 5; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Bat Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 10) { PlayerInfo[playerid][pDGun1] = 6; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shovel Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 11) { PlayerInfo[playerid][pDGun1] = 8; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Katana Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 12) { PlayerInfo[playerid][pDGun1] = 23; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " SPistol Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } } return 1; } if(dialogid == slot3) { if(response) { if(listitem == 0) { PlayerInfo[playerid][pDGun3] = 24; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Desert Eagle Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 1) { PlayerInfo[playerid][pDGun3] = 32; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Tec 9 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 2) { PlayerInfo[playerid][pDGun3] = 31; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " M4 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 3) { PlayerInfo[playerid][pDGun3] = 29; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Mp5 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 4) { PlayerInfo[playerid][pDGun3] = 30; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Ak47 Loading..."); OnPlayerUpdate(playerid); } if(listitem == 5) { PlayerInfo[playerid][pDGun3] = 33; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Country Rifle Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 6) { PlayerInfo[playerid][pDGun3] = 28; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Micro SMG Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 7) { PlayerInfo[playerid][pDGun3] = 25; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shotgun Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 8) { PlayerInfo[playerid][pDGun1] = 4; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Knife Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 9) { PlayerInfo[playerid][pDGun1] = 5; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Bat Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 10) { PlayerInfo[playerid][pDGun1] = 6; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shovel Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 11) { PlayerInfo[playerid][pDGun1] = 8; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Katana Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 12) { PlayerInfo[playerid][pDGun1] = 23; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " SPistol Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } } return 1; } if(dialogid == slot4) { if(response) { if(listitem == 0) { PlayerInfo[playerid][pDGun4] = 24; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Desert Eagle Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 1) { PlayerInfo[playerid][pDGun4] = 32; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Tec 9 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 2) { PlayerInfo[playerid][pDGun4] = 31; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " M4 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 3) { PlayerInfo[playerid][pDGun4] = 29; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Mp5 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 4) { PlayerInfo[playerid][pDGun4] = 30; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Ak47 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 5) { PlayerInfo[playerid][pDGun4] = 33; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Country Rifle Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 6) { PlayerInfo[playerid][pDGun4] = 28; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Micro SMG Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 7) { PlayerInfo[playerid][pDGun4] = 25; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shotgun Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 8) { PlayerInfo[playerid][pDGun1] = 4; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Knife Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 9) { PlayerInfo[playerid][pDGun1] = 5; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Bat Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 10) { PlayerInfo[playerid][pDGun1] = 6; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shovel Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 11) { PlayerInfo[playerid][pDGun1] = 8; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Katana Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 12) { PlayerInfo[playerid][pDGun1] = 23; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " SPistol Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } } return 1; } if(dialogid == slot5) { if(response) { if(listitem == 0) { PlayerInfo[playerid][pDGun5] = 24; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Desert Eagle Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 1) { PlayerInfo[playerid][pDGun5] = 32; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Tec 9 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 2) { PlayerInfo[playerid][pDGun5] = 31; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " M4 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 3) { PlayerInfo[playerid][pDGun5] = 29; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Mp5 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 4) { PlayerInfo[playerid][pDGun5] = 30; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Ak47 Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 5) { PlayerInfo[playerid][pDGun5] = 33; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Country Rifle Loading..."); OnPlayerUpdate(playerid); ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 6) { PlayerInfo[playerid][pDGun5] = 28; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Micro SMG Loading..."); OnPlayerUpdate(playerid); ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 7) { PlayerInfo[playerid][pDGun5] = 25; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shotgun Loading..."); OnPlayerUpdate(playerid); ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 8) { PlayerInfo[playerid][pDGun1] = 4; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Knife Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 9) { PlayerInfo[playerid][pDGun1] = 5; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Bat Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 10) { PlayerInfo[playerid][pDGun1] = 6; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Shovel Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 11) { PlayerInfo[playerid][pDGun1] = 8; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " Katana Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } if(listitem == 12) { PlayerInfo[playerid][pDGun1] = 23; pgun[playerid] -= 1; SendClientMessage(playerid, COLOR_LIGHTGREEN, " SPistol Loading..."); OnPlayerUpdate(playerid);ShowPlayerDialog(playerid, dgunrespawn, DIALOG_STYLE_MSGBOX, " Respawn ca sa iti apara arma" , " Alege butonul ' Respawn ' ca sa primesti arma ", "Respawn" , "Not"); } } return 1; } [/pawn]
  3. uitate inca o data peste comanda ai uitat sa inchizi cateva acolade
  4. degeaba ai tu fisierul cars.cfg daca nu ai sistemul de masini personale care trebuie in GM
  5. pune si publicul OnPropUpdate
  6. Ai incercat sa intrii pe server si sa vezi ce se intampla? daca funcioneaza totul corect?
  7. Incearca asta [pawn] //------------------------------Depune Retrage -----------------------------------------------// if(strcmp(cmd,"/depune",true)==0) { if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==1 || member==2 || member==3 || member==4 || member==7 || member==8 || member==9 || member==10 || member==11) { SendClientMessage(playerid, COLOR_GREEN, "You are not a gang member !"); return 1; } else if(leader==1 || leader==2 || leader==3 || leader==4 || leader==7 || leader==8 || leader==9 || leader==10 || leader==11) { SendClientMessage(playerid, COLOR_GREEN, "You are not a gang member !"); return 1; } else if(PlayerInfo[playerid][pTeam] == 3 || PlayerInfo[playerid][pTeam] == 4) { SendClientMessage(playerid, COLOR_GREEN, "You are not a gang member !"); return 1; } if(PlayerToPoint(25.0,playerid,2027.5966,1008.9321,10.8203) || PlayerToPoint(3.0,playerid,868.6223,-1526.4441,13.5547) || PlayerToPoint(3.0,playerid,2782.7209,-1957.9377,13.5469) || PlayerToPoint(3.0,playerid,679.4280,-1276.8392,13.5956) || PlayerToPoint(3.0,playerid,2156.3076,-1455.8517,25.5391) || PlayerToPoint(3.0,playerid,2494.8640,-1668.1879,13.3438)) { new x_nr[128];//era 256 x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "|__________________ Depune __________________|"); SendClientMessage(playerid, COLOR_WHITE, "MESAJ: /depune [nume]"); SendClientMessage(playerid, COLOR_GREY, "Nume Valabile: Materiale, Droguri"); SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|"); return 1; } if(strcmp(x_nr,"Materiale",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: Materiale [numar]"); format(string, sizeof(string), "ai %d materiale.", PlayerInfo[playerid][pMats]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new matss; matss = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: Materiale [numar]"); format(string, sizeof(string), "ai %d materiale.", PlayerInfo[playerid][pMats]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if(matss > PlayerInfo[playerid][pMats] && matss < 0) { SendClientMessage(playerid, COLOR_GRAD2, "Nu ai destul!"); return 1; } PlayerInfo[playerid][pMats] -= matss; PlayerInfo[playerid][pBoxMats] += matss; format(string, sizeof(string), "ai depus %d materiale!", matss); SendClientMessage(playerid, COLOR_GRAD4, string); return 1; } else if(strcmp(x_nr,"Droguri",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: Droguri [numar]"); format(string, sizeof(string), "ai %d Grame.", PlayerInfo[playerid][pDrugs]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new drugss; drugss = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: Droguri [numar]"); format(string, sizeof(string), "ai %d Grame.", PlayerInfo[playerid][pDrugs]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if(drugss > PlayerInfo[playerid][pDrugs] && drugss < 0) { SendClientMessage(playerid, COLOR_GRAD2, "Nu ai atat!"); return 1; } PlayerInfo[playerid][pDrugs] -= drugss; PlayerInfo[playerid][pBoxDrugs] += drugss; format(string, sizeof(string), "ai depus %d grame droguri!", drugss); SendClientMessage(playerid, COLOR_GRAD4, string); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu esti in locul potrivit !"); return 1; } }//not connected return 1; } [/pawn]
  8. incearca asta atunci cand verifici parola [pawn] new EscapedText[60]; mysql_real_escape_string(password, EscapedText); format(query, sizeof(query), "SELECT Parola FROM users WHERE `Nume` = '%s' AND `Parola` = MD5('%s') LIMIT 1", loginname, EscapedText); mysql_query(query); [/pawn] Pentru ca tie nu iti trebuie toata linia iti trebuie doar continutul din campul "Parola"
  9. citeste linie cu linie si uitate daca ai ceva warninguri sau erori [pawn][11:30:44] Warning: EnableZoneNames() is removed since 0.3[/pawn] da si server.cfg
  10. trebuie sa faci update la plugin-ul si include-ul streamer Uite aici eroarea care ti-a dato [pawn] [10:54:44] *** Streamer Plugin: Include file version (0x26104) does not match plugin version (0x26105) (script needs to be recompiled with the latest include file) [/pawn]
  11. http://forum.sa-mp.com/showpost.php?p=1601587&postcount=3
  12. Spune problema si vedem daca te putem ajuta
  13. sa configurezi junkbuster-ul. Pentru a configura trebuie sa intrii pe server, sa te loghezi cu rcon si sa folosesti comanda /jbcfg
  14. da continuare de la [pawn]new EscapedText[60]; mysql_real_escape_string(password, EscapedText); format(query, sizeof(query), "SELECT * FROM users WHERE `Nume` = '%s' AND `Parola` = MD5('%s') LIMIT 1", loginname, EscapedText); mysql_query(query);[/pawn]
  15. prima data invata sa editezi unul gata facut, dupa aceea te poti apuca de unu facut de tine de la 0. Sau poti s iei ca model un gm gata facut sa vezi cum e facut acolo.
  16. schimba in gm acea culoare RED in REDx si peste tot unde e folosita pui REDx pentru a nu se suprapune cu cel de la junkbuster
  17. daca ai junkbuster sub forma de fs atunci trebuie sa adaugi acel include peste tot in toate fs-urile si in gm
  18. atunci da macar comnda de deschidere sa vedem cum ai
  19. daca vrei sa mearga jobul si in fs trebuie sa adaugi la inceput [pawn] #include <junkbuster> [/pawn]
  20. dane comanda unde deschide poarta si publicul care ar trebui sa inchida poarta.
  21. include asta la inceputul functiei [pawn]if( killerid == INVALID_PLAYER_ID ) { return 1; }[/pawn]
  22. incearca asta [pawn] if (strcmp("/armeballas", cmdtext, true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, 0xFFFFFFAA, "Ai primit armele factiunii"); GivePlayerWeapon(playerid, 24, 500); } return 1; } [/pawn]
  23. pentru a rezolva problema dane functia StartingTheVehicle
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.