Jump to content

ToX1c

Membru
  • Posts

    245
  • Joined

  • Last visited

    Never

Posts posted by ToX1c

  1. Salut am incercat sa fac la comanda /aod sa nu mai scada viata si armura da nu reusesc , am facut ceva de genu

    Am pus asta la Setplayerunjail

    for(new i = 0; i <= MAX_PLAYERS; i++)
    	{
    	    if(IsPlayerConnected(i))
    	    {
    		   new playerid;
               new Float: Health, Float:Armour;
               AdminDuty[playerid] = 0;
               if(GetPlayerHealth(i, Health) <= 9999 || GetPlayerArmour(i, Armour) <= 9999)
               SetPlayerArmour(i, 999999);
               SetPlayerHealth(i, 999999);
               }
        }
    Comanda /aod
    if(strcmp(cmd, "/aod", true) == 0)
    	{
    		if (PlayerInfo[playerid][pAdmin] >= 1)
    	   	{
    		    if(AdminDuty[playerid] == 1)
    		    {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
    			    format(string, sizeof(string), "Administratorul %s este acum indisponibil , tastati /admins pentru a sti care admin e disponibil.", sendername,playerid);
                    SendClientMessageToAll(0x856699C8,string);
       				AdminDuty[playerid] = 0;
    				SetPlayerHealth(playerid,100);
    				SetPlayerArmour(playerid,0);
    				SetPlayerToTeamColor(playerid);
    				ResetPlayerWeapons(playerid);
                }
    		    else
    		    {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
    		    	format(string, sizeof(string), "Administratorul %s este acum disponibil sa va ajute.Puteti sa-i trimiteti PM pentru informatii.",sendername,playerid);
    				SendClientMessageToAll(0xAA6655C8,string);
       				AdminDuty[playerid] = 1;
                    SetPlayerArmour(playerid, 9999999);
                    SetPlayerHealth(playerid, 9999999);
                    SetPlayerColor(playerid,0xFAAFBEFF);
    				for(new i = 0; i <= MAX_PLAYERS; i++)
                    {
    		                if(IsPlayerConnected(i))
    				        {
    					      SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );
    					    }
    		        }
                    if(PlayerInfo[playerid][pAdmin] >= 1337)
    				{
    					ResetPlayerWeapons(playerid);
    					GivePlayerWeapon(playerid, 42, 10000);
    					GivePlayerWeapon(playerid, 39, 10000);
    					GivePlayerWeapon(playerid, 38, 10000);
    					GivePlayerWeapon(playerid, 34, 10000);
    					GivePlayerWeapon(playerid, 31, 10000);
    					GivePlayerWeapon(playerid, 29, 10000);
    					GivePlayerWeapon(playerid, 27, 10000);
    					GivePlayerWeapon(playerid, 24, 10000);
    					GivePlayerWeapon(playerid, 40, 1);
    					GivePlayerWeapon(playerid, 10, 1);
    					GivePlayerWeapon(playerid, 9, 1);
    				}
    		    }
    		}
    		else
    		{
    			SendClientMessage(playerid,COLOR_GREY,"Your not an admin !");
    		}
    		return 1;
    	}

    Problema este ca da la tot serverul armura si viata..cum fac sa numai dea la toti doar la adminii care dau /aod

  2. Problema e ca daca am 100k la mine in mana si dau /givemoney numele meu si 50k ma seteaza cu 50k nu cu 150k..

    if(strcmp(cmd, "/givemoney", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			tmp = strtok(cmdtext, idx);
    			if(!strlen(tmp))
    			{
    				SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: /givemoney [playerid/PartOfName] [money]");
    				return 1;
    			}
    			new playa;
    			new money;
    			playa = ReturnUser(tmp);
    			tmp = strtok(cmdtext, idx);
    			money = strval(tmp);
    			if (PlayerInfo[playerid][pAdmin] >= 4)
    			{
    			    if(IsPlayerConnected(playa))
    			    {
    			        if(playa != INVALID_PLAYER_ID)
    			        {
    			            ConsumingMoney[playa] = 1;
    						SetPlayerCash(playa, money);
    						GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    						GetPlayerName(playerid, sendername, sizeof(sendername));
    						format(string, 128, "AdmWarning: %s has admin given %d to %s.", sendername,money,giveplayer);
    						ABroadCast(COLOR_YELLOW,string,1);
    						AdminLog(string);
    					}
    				}
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_GRAD1, "Nu ai level-ul de admin suficient pentru a folosi aceasta comanda.");
    			}
    		}
    		return 1;
    	}

  3. else if ((strcmp("Undercover", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Undercover")))

    {

        tmp = strtok(text, idx);

        if ((strcmp("On", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("On")))

        {

            SendClientMessage(playerid, COLOR_WHITE, "Undercover On.");

      for(new i = 0; i < MAX_PLAYERS; i++)

        {

            SetPlayerColor(playerid,0xFFFFFF00);

        }

    }

    else if ((strcmp("Off", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Off")))

    {

        SendClientMessage(playerid, COLOR_WHITE, "Undercover Off.");

          for(new i = 0; i < MAX_PLAYERS; i++)

        {

            SetPlayerColor(playerid,0xA63232FF);

        }

    }

    else

    {

        SendClientMessage(playerid, COLOR_WHITE, "Undercover [On/Off]");

        return 0;

    }

    }

    Rock eu vrea sa numai apara deloc pe harta..hitmanii

  4. if(strcmp(cmd, "/buyhouse", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			new Float:oldposx, Float:oldposy, Float:oldposz;
    			GetPlayerName(playerid, playername, sizeof(playername));
    			GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    			for(new h = 0; h < sizeof(HouseInfo); h++)
    			{
    				if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
    				{
    					if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
    					{
    						format(string, sizeof(string), "   You must be Level %d to purchase this !", HouseInfo[h][hLevel]);
    						SendClientMessage(playerid, COLOR_GRAD5, string);
    						return 1;
    					}
    					if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
    					{
    						SendClientMessage(playerid, COLOR_WHITE, "   You already own a house, type /sellhouse if you want to buy this one !");
    						return 1;
    					}
    					if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
    					{
    						PlayerInfo[playerid][pPhousekey] = h;
    						HouseInfo[h][hOwned] = 1;
    						GetPlayerName(playerid, sendername, sizeof(sendername));
    						strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
    						GivePlayerMoney(playerid,-HouseInfo[h][hValue]);
    						PlayerPlayMusic(playerid);
    						SetPlayerInterior(playerid,HouseInfo[h][hInt]);
    						SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]);
    						GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and typing /exit", 5000, 3);
    						PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
    						PlayerInfo[playerid][pLocal] = h;
    						SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new Purchase !");
    						SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new property help section !");
    						SendClientMessage(playerid, COLOR_LIGHTRED, "ATENTIE: Daca vinzi casa nu o sa primesti banii de la buy !");
                            DateProp(playerid);
    						OnPropUpdate(1);
    						OnPlayerUpdateEx(playerid);
    						return 1;
    					}
    					else
    					{
    						SendClientMessage(playerid, COLOR_WHITE, "   You don't have the cash for that !");
    						return 1;
    					}
    				}
    			}
    		}
    		return 1;
    	}

  5. Salut am si eu o problema la comanda /exit cand cumpar o casa si vreau sa ies din casa nu merge sa dau /exit , daca imi dau respawn intru in casa si dau /exit merge ce trebuie sa fac ca sa mearga cand cumpar casa fara sa mai dau /restart?

    2.Cum fac la hitman sa nu apara pe harta..?fara comanda /undercover.

  6. Salut am si eu comanda /depune la mafii si ganguri si am un bug daca bag -100123123materiale merge si imi apare la stats ca am 100123123 materiale cum fac sa nu pot sa adaug.?

    //------------------------------Depune Retrage -----------------------------------------------//
    	if(strcmp(cmd,"/depune",true)==0)
        {
            if(IsPlayerConnected(playerid))
    	    {
                new leader = PlayerInfo[playerid][pLeader];
                new member = PlayerInfo[playerid][pMember];
                if(member==1 || member==2 || member==3 || member==4 || member==7 || member==8 || member==9 || member==10 || member==11)
                {
                   SendClientMessage(playerid, COLOR_GREEN, "You are not a gang member !");
                   return 1;
                }
                else if(leader==1 || leader==2 || leader==3 || leader==4 || leader==7 || leader==8 || leader==9 || leader==10 || leader==11)
                {
                   SendClientMessage(playerid, COLOR_GREEN, "You are not a gang member !");
                   return 1;
                }
                else if(PlayerInfo[playerid][pTeam] == 3 || PlayerInfo[playerid][pTeam] == 4)
    			{
                   SendClientMessage(playerid, COLOR_GREEN, "You are not a gang member !");
                   return 1;
                }
                if(PlayerToPoint(25.0,playerid,2027.5966,1008.9321,10.8203) || PlayerToPoint(3.0,playerid,868.6223,-1526.4441,13.5547) || PlayerToPoint(3.0,playerid,2782.7209,-1957.9377,13.5469) || PlayerToPoint(3.0,playerid,679.4280,-1276.8392,13.5956) || PlayerToPoint(3.0,playerid,2156.3076,-1455.8517,25.5391) || PlayerToPoint(3.0,playerid,2494.8640,-1668.1879,13.3438))
                {
                   new x_nr[128];//era 256
    			   x_nr = strtok(cmdtext, idx);
    			   if(!strlen(x_nr)) {
    			      SendClientMessage(playerid, COLOR_WHITE, "|__________________ Depune  __________________|");
    				  SendClientMessage(playerid, COLOR_WHITE, "MESAJ: /depune [nume]");
    				  SendClientMessage(playerid, COLOR_GREY, "Nume Valabile: Materiale, Droguri");
    				  SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
    				  return 1;
    			   }
    	           if(strcmp(x_nr,"Materiale",true) == 0)
    			   {
    			      tmp = strtok(cmdtext, idx);
    			      if(!strlen(tmp))
    			      {
    				     SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: Materiale [numar]");
    				     format(string, sizeof(string), "ai %d materiale.", PlayerInfo[playerid][pMats]);
    				     SendClientMessage(playerid, COLOR_GRAD3, string);
    				     return 1;
    			      }
                      new matss;
                      matss = strval(tmp);
                      if(!strlen(tmp))
    			      {
    				     SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: Materiale [numar]");
    				     format(string, sizeof(string), "ai %d materiale.", PlayerInfo[playerid][pMats]);
    				     SendClientMessage(playerid, COLOR_GRAD3, string);
    				     return 1;
    			      }
                      if(matss > PlayerInfo[playerid][pMats])
                      {
                         SendClientMessage(playerid, COLOR_GRAD2, "Nu ai destul!");
                         return 1;
                      }
                      PlayerInfo[playerid][pMats] -= matss;
                      PlayerInfo[playerid][pBoxMats] += matss;
                      format(string, sizeof(string), "ai depus %d materiale!", matss);
                      SendClientMessage(playerid, COLOR_GRAD4, string);
                      return 1;
    			   }
    			   else if(strcmp(x_nr,"Droguri",true) == 0)
    		 	   {
                      tmp = strtok(cmdtext, idx);
    			      if(!strlen(tmp))
    			      {
    				     SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: Droguri [numar]");
    				     format(string, sizeof(string), "ai %d Grame.", PlayerInfo[playerid][pDrugs]);
    				     SendClientMessage(playerid, COLOR_GRAD3, string);
    				     return 1;
    			      }
                      new drugss;
                      drugss = strval(tmp);
                      if(!strlen(tmp))
    			      {
    				     SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: Droguri [numar]");
    				     format(string, sizeof(string), "ai %d Grame.", PlayerInfo[playerid][pDrugs]);
    				     SendClientMessage(playerid, COLOR_GRAD3, string);
    				     return 1;
    			      }
                      if(drugss > PlayerInfo[playerid][pDrugs])
                      {
                         SendClientMessage(playerid, COLOR_GRAD2, "Nu ai atat!");
                         return 1;
                      }
                      PlayerInfo[playerid][pDrugs] -= drugss;
                      PlayerInfo[playerid][pBoxDrugs] += drugss;
                      format(string, sizeof(string), "ai depus %d grame droguri!", drugss);
                      SendClientMessage(playerid, COLOR_GRAD4, string);
                      return 1;
                   }
                }
    			else
    			{
    				SendClientMessage(playerid, COLOR_GREY, "Nu esti in locul potrivit !");
    	            return 1;
     			}
            }//not connected
    		return 1;
    	}

  7. Salut care ma poate ajuta si pe mine cu un anti money hack sa nu poti sa bagi bani cu codul ca am bagat junkbuster si nu merge am bagat junkbuster 11

    in log apare ca functionea-za junkbuster da poti sa bagi bani cu codul , trebuie sa bagi ceva in gm ? inafara de include -junkbuster?

  8. Salut am si eu o problema in legatura cu connectarea la server , cand intru pe sv imi are scrisul ala cu connected to nume server si de acolo trebuie sa astept vro 10 15 secunde pana imi apare dialogul.

    2.Cum pot sa rezolv si eu problema asta sa numai scrie asa in log la server

    [03:02:43] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
    [03:02:43] Pickups Max = 100, Current Pickups = 221
    [03:02:43] Script[gamemodes/fds.amx]: Run time error 20: "Invalid index parameter (bad entry point)"

  9. public PayDay()
    {
        SaveTool();
    	new string[128];
    	new account,interest;
    	new rent = 0;
    	for(new i = 0; i < MAX_PLAYERS; i++)
    	{
    		if(IsPlayerConnected(i))
    		{
    		    if(PlayerInfo[i][pLevel] > 0)
    		    {
    			    if(MoneyMessage[i]==1)
    				{
    				    SendClientMessage(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time.");
    				    GameTextForPlayer(i, "~r~Busted!", 2000, 1);
    				    SetPlayerInterior(i, 6);
    			   		SetPlayerPos(i, 264.6288,77.5742,1001.0391);
    		            PlayerInfo[i][pJailed] = 1;
                  		SetTimerEx("Checkjail", 3000, 0, "d", i);
       					SetTimerEx("Checkjail1", 3000, 0, "d", i);
    			 		SetTimerEx("Checkjail2", 3000, 0, "d", i);
    		            ResetPlayerWeapons(i);
    		            SetTimerEx("jailtime", 3000, 0, "d", i);
    					WantedPoints[i] = 0;
    					PlayerInfo[i][pJailTime] = 240;
    					format(string, sizeof(string), "You are jailed for %d seconds.   Bail: Unable", PlayerInfo[i][pJailTime]);
    					SendClientMessage(i, COLOR_LIGHTBLUE, string);
    				}
    				new playername2[MAX_PLAYER_NAME];
    				GetPlayerName(i, playername2, sizeof(playername2));
    				account = PlayerInfo[i][pAccount];
    				new key = PlayerInfo[i][pPhousekey];
    				if(key != 255)
    				{
    					rent = HouseInfo[key][hRent];
    					if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
    					{
    						rent = 0;
    					}
    					else if(rent > PlayerInfo[i][pCash])
    					{
    						PlayerInfo[i][pPhousekey] = 255;
    						SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
    						rent = 0;
    					}
    					HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
    				}
    				new tmpintrate;
    				if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
    				{
    				    if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 2; }
    					else { tmpintrate = 2; }//HouseInfo[key][hLevel]
    				}
    				else
    				{
    				    if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 2; }
    					else { tmpintrate = 2; }
    				}
    				if(PlayerInfo[i][pPayDay] >= 5)
    				{
    					    Tax += TaxValue;//Should work for every player online
    					    PlayerInfo[i][pAccount] -= TaxValue;
    					    if(PlayerInfo[i][pDonateRank] > 0)
    						{
    						    new bonus = PlayerInfo[i][pPayCheck] / 2;
    						    PlayerInfo[i][pPayCheck] += bonus;
    						}
    						new checks = PlayerInfo[i][pPayCheck];
    					    new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
    					    ConsumingMoney[i] = 1;
    					    PlayerInfo[i][pCash] = PlayerInfo[i][pCash] + checks;
    					    if(PlayerInfo[i][pAccount] > 0)
    					    {
    					    	PlayerInfo[i][pAccount] -= ebill;
    					    	BizzInfo[4][bTill] += ebill;
    						}
    						else
    						{
    						    ebill = 0;
    						}
    						interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
    						PlayerInfo[i][pExp]++;
    						PlayerPlayMusic(i);
    						PlayerInfo[i][pAccount] = account+interest;
    						SendClientMessage(i, COLOR_WHITE, "|____ PAY DAY ____|");
    						format(string, sizeof(string), "  Paycheck: %s   Tax Money: -%s", FormatMoney(checks), FormatMoney(TaxValue));
    						SendClientMessage(i, COLOR_GRAD1, string);
    						if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
    						{
    						    format(string, sizeof(string), "  Electricity Bill: -%s", FormatMoney(ebill));
    							SendClientMessage(i, COLOR_GRAD1, string);
    						}
    						format(string, sizeof(string), "  Balance: %s", FormatMoney(account));
    						SendClientMessage(i, COLOR_GRAD1, string);
    						format(string, sizeof(string), "  Interest Rate: 0.%d percent",tmpintrate);
    						SendClientMessage(i, COLOR_GRAD2, string);
    						format(string, sizeof(string), "  Interest Gained %s", FormatMoney(interest));
    						SendClientMessage(i, COLOR_GRAD3, string);
    						SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
    						format(string, sizeof(string), "  New Balance: %s", FormatMoney(PlayerInfo[i][pAccount]));
    						SendClientMessage(i, COLOR_GRAD5, string);
    						format(string, sizeof(string), "  Rent: -%s", FormatMoney(rent));
    						SendClientMessage(i, COLOR_GRAD5, string);
    						format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
    						GameTextForPlayer(i, string, 5000, 1);
    						rent = 0;
    						PlayerInfo[i][pPayDay] = 0;
    						PlayerInfo[i][pPayCheck] = 0;
    						PlayerInfo[i][pConnectTime] += 1;
    						PlayerInfo[i][pContractTime] += 1;
    						if(PlayerInfo[i][pBlackListTime] > 0)
    						{
    						    PlayerInfo[i][pBlackListTime] -= 1;
    							if(PlayerInfo[i][pBlackListTime] <= 0)
    							{
    							    PlayerInfo[i][pBlackListTime] = 0;
    							    PlayerInfo[i][pBlackList] = 0;
    							    SendClientMessage(i, COLOR_GREY, "Black-listul tau a expirat, acum poti intra intr-o factiune");
    							}
    						}
    						if(PlayerInfo[i][pDonateRank] > 0)
    						{
    						    PlayerInfo[i][pPayDayHad] += 1;
    						    if(PlayerInfo[i][pPayDayHad] >= 5)
    						    {
    						        PlayerInfo[i][pExp]++;
    						        PlayerInfo[i][pPayDayHad] = 0;
    						    }
    					}
    				}
    				else
    				{
    				    SendClientMessage(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay.");
    				}
    			}
    		}
    	}
    	//Checkprop();
    	return 1;
    }

  10. Mai am o problema cand dau /lockmycar la masina personala nu se incuie ..

    if (strcmp("/lockmycar", cmdtext, true, 10) == 0)
        {
            if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be in your car for this action");
        	if(GetCreatorID(vehicleid)!=0)
         	{
    			if (strmatch(VehicleSystem[GetCreatorID(vehicleid)][owner],Spielername(playerid)))
       			{
    				if(Locked[vehicleid] == 0)
    	            {
    	                Locked[vehicleid] = 1;
    	                VehicleSystem[vehicleid][Lock] = 1;
    	                for(new i=0; i < MAX_PLAYERS; i++)
    				    {
    				        if(i == playerid) continue;
    				        SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
    				    }
    	                SendClientMessage(playerid, COLOR_GREY, "You have locked your car!");
    	                GetPlayerName(playerid, sendername, sizeof(sendername));
    	                format(string, sizeof(string), "* %s is locking his personal vehicle and puts the key in his pocket.", sendername);
    					ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    					GameTextForPlayer(playerid, "~w~Personal Vehicle ~r~Locked", 5000, 6);
    					PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    				}
    				else if(Locked[vehicleid] == 1)
    				{
    					SendClientMessage(playerid, COLOR_GREY, "Your car is already locked!");
    				}
    			}
    			else
    			{
    			    SendClientMessage(playerid, COLOR_GREY, "This is not you're car");
    			}
    		}
    		return 1;
    	}
        if (strcmp("/unlockmycar", cmdtext, true, 10) == 0)
        {
            if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be in your car for this action");
        	if(GetCreatorID(vehicleid)!=0)
         	{
    			if (strmatch(VehicleSystem[GetCreatorID(vehicleid)][owner],Spielername(playerid)))
       			{
    				if(Locked[vehicleid] == 1)
    	            {
    	                Locked[vehicleid] = 0;
    	                VehicleSystem[vehicleid][Lock] = 0;
    	                for(new i=0; i < MAX_PLAYERS; i++)
    				    {
    				        if(i == playerid) continue;
    				        SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,0);
    				    }
    	                SendClientMessage(playerid, COLOR_GREY, "You have Unlocked you're car!");
    	                GetPlayerName(playerid, sendername, sizeof(sendername));
    	                format(string, sizeof(string), "* %s looks in his pocket for his car key. He finds the key and unlocks his personal vehicle.", sendername);
    					ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    					GameTextForPlayer(playerid, "~w~Personal Vehicle ~g~UnLocked", 5000, 6);
    					PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    				}
    				else if(Locked[vehicleid] == 0)
    				{
    					SendClientMessage(playerid, COLOR_GREY, "You're car is already unlocked!");
    				}
    			}
    		}
    		return 1;
    	}

  11. Am gasit o solutie de cate ori dau /parkmycar trebuie sa dau /savealldata

    if(strcmp(cmd, "/savealldata", true) == 0)
    	{
    		if (PlayerInfo[playerid][pAdmin] >= 3)
    		{
    			SaveAccounts();
    			OnPropUpdate();
    			SaveTool();
    			SendClientMessage(playerid, COLOR_YELLOW, "All player accounts saved successfully.");
    		}
    		else
    		{
    			SendClientMessage(playerid, COLOR_ORANGE, "DENIED: {FFFFFF}You are not authorized to use that command.");
    		}
    		return 1;
    	}

    Eu as vrea sa fac fara sa dau /savealldata de fiecare data cand dau parkmycar

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.