CMD problem
#7

PHP код:
    if(strcmp(cmd"/ciordeste"true) == 0)
     {
        if(
PlayerData[playerid][pMember] == 5) || PlayerData[playerid][pLeader] == 5)
         {
             if(
CiorditTimp[playerid] == 0)
             {
                 new 
victima GetClosestPlayer(playerid);
                 if(
GetDistanceBetweenPlayers(playerid,victima) < 5)
                {
                    if(
PlayerData[victima][pMember] != || PlayerData[victima][pLeader] != 5)
                    {
                        new 
banili random(1000) + 500;
                         new 
nume1[24], nume2[24];
                         
GetPlayerName(playeridnume1sizeof(nume1));
                         
GetPlayerName(victimanume2sizeof(nume2));
                         
format(stringsizeof(string), "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!"nume1banili);
                         
SendClientMessage(victimaCOLOR_WHITEstring);
                         
format(stringsizeof(string), "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!"nume2banili);
                         
SendClientMessage(playeridCOLOR_WHITEstring);
                         
GivePlayerCash(playeridbanili);
                         
GivePlayerCash(victima, -banili);
                        
CiorditTimp[playerid] = 1;
                        
SetTimerEx("ciordealatimp"120000false"i"playerid);
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"Nu iti poti ciordi fratele!");
                        return 
1;
                    }
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY"Nu e nimeni langa tine!");
                    return 
1;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"Trebuie sa astepti 2 minute intre ciordiri!");
                return 
1;
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GREY"Nu faci parte din factiunea Rromi!");
            return 
1;
        }
        return 
1;
    } 
Reply


Messages In This Thread
CMD problem - by Ax3l123 - 15.08.2015, 21:38
Re: CMD problem - by UnDetectable - 16.08.2015, 01:21
Re: CMD problem - by Keyhead - 16.08.2015, 02:19
Re: CMD problem - by Ax3l123 - 16.08.2015, 07:58
Re: CMD problem - by IgorLuiz - 16.08.2015, 08:24
Re: CMD problem - by Ax3l123 - 16.08.2015, 09:24
Re: CMD problem - by IgorLuiz - 16.08.2015, 09:35
Re: CMD problem - by jlalt - 16.08.2015, 10:03
Re: CMD problem - by Ax3l123 - 16.08.2015, 10:11
Re: CMD problem - by jlalt - 16.08.2015, 10:12

Forum Jump:


Users browsing this thread: 2 Guest(s)