[Ajuda] Problema com dialog
#5

Quote:
Originally Posted by n0minal
Посмотреть сообщение
Provavelmente vocк tб mostrando o dialog na OnPlayerSpawn, ela й chamada toda vez que o player spawna/respawna, se eu fosse vocк usaria o dialog na OnPlayerRequestClass. Caso esse nгo seja o caso, poste o cуdigo da OnPlayerDeath.
O dialog jб estб na OnPlayerRequestClass

Essa й a OnPlayerSpawn

PHP код:
public OnPlayerSpawn(playerid)
{
    
Spawned[playerid] = 1;
    
PlayerInfo[playerid][pMute] = 0;
    
PlayerPlaySound(playerid,1063,0.0,0.0,0.0);
    
PlayerPlaySound(playerid,30802,0.0,0.0,0.0);
//    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    
if(GetPlayerScore(playerid) >= && GetPlayerScore(playerid) <= 30){
        
GivePlayerWeapon(playerid24500);
    }
       if(
GetPlayerScore(playerid) >= 30 && GetPlayerScore(playerid) <= 80){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid25500);
    }
       if(
GetPlayerScore(playerid) >= 80 && GetPlayerScore(playerid) <= 150){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid25500);
        
GivePlayerWeapon(playerid29500);
    }
       if(
GetPlayerScore(playerid) >= 150 && GetPlayerScore(playerid) <= 230){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid25500);
        
GivePlayerWeapon(playerid29500);
    }
       if(
GetPlayerScore(playerid) >= 230 && GetPlayerScore(playerid) <= 320){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid25500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid301500);
        
SetPlayerArmour(playerid20);
    }
       if(
GetPlayerScore(playerid) >= 320 && GetPlayerScore(playerid) <= 450){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid25500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid311500);
        
SetPlayerArmour(playerid20);
    }
       if(
GetPlayerScore(playerid) >= 450 && GetPlayerScore(playerid) <= 700){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid27500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid311500);
        
SetPlayerArmour(playerid20);
    }
       if(
GetPlayerScore(playerid) >= 700 && GetPlayerScore(playerid) <= 1000){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid27500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid311500);
        
SetPlayerArmour(playerid60);
    }
       if(
GetPlayerScore(playerid) >= 1000 && GetPlayerScore(playerid) <= 1337){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid27500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid3490);
        
GivePlayerWeapon(playerid311500);
        
SetPlayerArmour(playerid60);
    }
       if(
GetPlayerScore(playerid) >= 1337 && GetPlayerScore(playerid) <= 9999999){
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid27500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid3490);
        
GivePlayerWeapon(playerid311500);
        
SetPlayerArmour(playerid100);
        
GivePlayerWeapon(playerid375);
    }
    return 
1;

Reply


Messages In This Thread
Problema com dialog - by axellech - 18.02.2018, 10:37
Re: Problema com dialog - by HelderPT - 18.02.2018, 10:55
Re: Problema com dialog - by axellech - 18.02.2018, 11:04
Re: Problema com dialog - by n0minal - 18.02.2018, 11:47
Re: Problema com dialog - by axellech - 18.02.2018, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)