01.12.2010, 14:32
Na verdade, vocк acabou colocando 2 jeitos de abrir o Dialog, poderia ser usando o comando ou ficando em cima do Нcone.
Bom, sendo o que for o cуdigo abaixo deve resolver o problema, e tente colocar sempre os cуdigos em [pawn ] e [/pawn], pois tive que colocar os cуdigos na forma "de lado".
Espero ter ajudado
Bom, sendo o que for o cуdigo abaixo deve resolver o problema, e tente colocar sempre os cуdigos em [pawn ] e [/pawn], pois tive que colocar os cуdigos na forma "de lado".
Quote:
if(dialogid == 666 && IsACop(playerid)){ if(response){ if(listitem == 0){ GivePlayerWeapon(playerid, 3, 999); GivePlayerWeapon(playerid, 22, 150); GivePlayerWeapon(playerid, 41, 500); GivePlayerWeapon(playerid, 25, 150); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 1){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 2){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 29, 150); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 3){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 4){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 5){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 34, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } } else{ } } |