Phone Number
#6

PHP код:
                    if( listitem == )
                    {
                            
//if(PlayerInfo[playerid][pPnumber] != 0)
                            //{
                            //    SendClientMessage(playerid, COLOR_GREY, "   Deja ai un Mobil ! ");
                            //    return 1;
                        //    }
                            
if(PlayerInfo[playerid][pTraderPerk] > 0)
                            {
                            if(
GetPlayerCash(playerid) <= 5000) return SendClientMessage(playeridCOLOR_RED"Nu ai destui bani pentru a cumpara de la 24/7!");
                            new 
skill 5000 100;
                            new 
price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
                            new 
payout 5000 price;
                            
format(stringsizeof(string), "~r~-%dLei"payout);
                            
GameTextForPlayer(playeridstring50001);
                            
GivePlayerCash(playerid,- payout);
                            
SBizzInfo[9][sbTill] += payout;
                            
ExtortionSBiz(9payout);
                        }
                        else
                        {
                            
format(stringsizeof(string), "~r~-%dLei"5000);
                            
GameTextForPlayer(playeridstring50001);
                            
GivePlayerCash(playerid,-5000);
                            
SBizzInfo[9][sbTill] += 5000;
                            
ExtortionSBiz(95000);
                        }
                        
PlayerPlaySound(playerid10520.00.00.0);
                        
PlayerInfo[playerid][pPnumber] = 700000000 random(99999999);
                        
PlayerInfo[playerid][pPnumber] = randphone;
                        
format(stringsizeof(string), "   Ti-ai luat un Mobil nou numarul tau de telefon este %d"randphone);
                        
SendClientMessage(playeridCOLOR_GRAD4string);
                        
SendClientMessage(playeridCOLOR_GRAD5"You can check this anytime by Typing /stats");
                        
SendClientMessage(playeridCOLOR_WHITE"HINT: You can now type /help to see your cell phone commands.");
                        return 
1;
                    } 
Reply


Messages In This Thread
Phone Number - by Akcent_Voltaj - 05.06.2013, 18:25
Re: Phone Number - by scout322 - 05.06.2013, 18:34
Re: Phone Number - by Akcent_Voltaj - 05.06.2013, 18:38
Re: Phone Number - by fordawinzz - 05.06.2013, 18:42
Re: Phone Number - by scout322 - 05.06.2013, 18:42
Re: Phone Number - by Akcent_Voltaj - 05.06.2013, 19:08
Re: Phone Number - by Vince - 05.06.2013, 20:47
Re: Phone Number - by Akcent_Voltaj - 05.06.2013, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)