30.11.2010, 21:44
bom, o problema й que eu defini quem ja pode abrir o dialog... no comando
mбas..., qlq 1 tava conseguindo equipar, eu utilizava streamer
ou seja
new pEquipM;
OnGameModeInit
pEquipM = CreateDynamicObject(1318,x,y,z);
ai no OnPlayerPickup eu coloquei,
if(pickupid == pEquipM)
{
ShowPlayerDialog etc etc... nenhum warn e erro algum mбs todos estavam conseguindo equipar @_@
comofas ?
Code :
No OnPlayerCommandText D:
Agora no OnDialogResponse axo '-'
mбas..., qlq 1 tava conseguindo equipar, eu utilizava streamer
ou seja
new pEquipM;
OnGameModeInit
pEquipM = CreateDynamicObject(1318,x,y,z);
ai no OnPlayerPickup eu coloquei,
if(pickupid == pEquipM)
{
ShowPlayerDialog etc etc... nenhum warn e erro algum mбs todos estavam conseguindo equipar @_@
comofas ?
Code :
No OnPlayerCommandText D:
Quote:
if(strcmp(cmd, "/equipm", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1) { if(PlayerToPoint(3.0,playerid,1529.82,-1661.18,6.22)) { ShowPlayerDialog(playerid,666,DIALOG_STYLE_LIST,"E quipar PM","Cargo - 1\nCargo - 2\nCargo - 3\nCargo - 4\nCargo - 5\nCargo - 6","OK","Fechar"); } else { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб na HQ !"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, "Vocк Nгo й Da Policia Militar !"); } } return 1; } |
Quote:
if(dialogid == 666){ 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{ } } |