Problem about police duty
#5

Hello!

I don't know exactly what your problem is, but try this:
PHP код:
else if(dialogid == 16 && response)
{
    switch(
listitem)
    {
        case 
0:
        {
            if(
PlayerInfo[playerid][pFaction] != 0)return SendClientMessage(playerid0xFF0000AA" Non fai parte della fazione POLIZIA");
            
ShowPlayerDialog(playerid,18,DIALOG_STYLE_LIST,"Polizia","Servizio","Ok","Chiudi");
            
SetPlayerSkin(playerid,PlayerInfo[pRank][pSkin]);
        }
        case 
1:
        {
            
ResetPlayerWeapons(playerid);
            
CopOnDuty[playerid] = 0;
            
SetPlayerArmour(playerid,0);
            
SetPlayerSkin(playeridPlayerInfo[playerid][pSkin]);
            
SetPlayerToFactionColor(playerid);
            
PlayerActionMessage(playerid,15.0,"toglie la divisa e ripone le armi e il distintivo");
            
SetPlayerColor(playeridWHITE);
        }
    }
}
if(
PlayerInfo[playerid][pFaction] == || PlayerInfo[playerid][pFaction] == 1)
{
    if(!
CopOnDuty[playerid])return SendClientMessage(playerid,0xFF0000AA"  Non sei in servizio!");
    if(
rank == 1)
    {
        
format(wstring,sizeof wstring,"[RADIO] %s %s: %s, passo.",DynamicFactions[faction][fRank1],GetPlayerNameEx(playerid),result);
        
ProxDetector(5.0,playerid,wstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        if(
PlayerInfo[playerid][pFaction] == 0)SendFactionMessage(0,0x33CCFFAA,wstring),SetPlayerSkin(playerid,288);
        else if(
PlayerInfo[playerid][pFaction] == 1)SendFactionMessage(1,0x33CCFFAA,wstring);
    }
    else if(
rank == 2)
    {
        
format(wstring,sizeof wstring,"[RADIO] %s %s: %s, passo.",DynamicFactions[faction][fRank2],GetPlayerNameEx(playerid),result);
        
ProxDetector(5.0playeridwstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        if(
PlayerInfo[playerid][pFaction] == 0)SendFactionMessage(0,0x33CCFFAA,wstring),SetPlayerSkin(playerid,282);
        else if(
PlayerInfo[playerid][pFaction] == 1)SendFactionMessage(1,0x33CCFFAA,wstring);
    }
    else if(
rank == 3)
    {
        
format(wstringsizeof(wstring), "[RADIO] %s %s: %s, passo.",DynamicFactions[faction][fRank3],GetPlayerNameEx(playerid),result);
        
ProxDetector(5.0playeridwstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        if(
PlayerInfo[playerid][pFaction] == 0)SendFactionMessage(00x33CCFFAAwstring),SetPlayerSkin(playerid281);
        else if(
PlayerInfo[playerid][pFaction] == 1)SendFactionMessage(10x33CCFFAAwstring);
    }
    else if(
rank == 4)
    {
        
format(wstringsizeof(wstring), "[RADIO] %s %s: %s, passo.",DynamicFactions[faction][fRank4],GetPlayerNameEx(playerid),result);
        
ProxDetector(5.0playeridwstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        if(
PlayerInfo[playerid][pFaction] == 0)SendFactionMessage(00x33CCFFAAwstring),SetPlayerSkin(playerid280);
        else if(
PlayerInfo[playerid][pFaction] == 1)SendFactionMessage(10x33CCFFAAwstring);
    }
    
FactionChatLog(wstring);
    
PhoneAnimation(playerid);

Reply


Messages In This Thread
Problem about police duty - by Steveproxy5 - 24.04.2015, 14:53
Re: Problem about police duty - by Steveproxy5 - 24.04.2015, 15:23
Re: Problem about police duty - by Eth - 25.04.2015, 22:17
Re: Problem about police duty - by Sithis - 25.04.2015, 22:39
Re: Problem about police duty - by Mencent - 26.04.2015, 07:19

Forum Jump:


Users browsing this thread: 1 Guest(s)