Jump to content

LTh_LeThaL

Membru
  • Posts

    121
  • Joined

  • Last visited

    Never

Posts posted by LTh_LeThaL

  1. Adauga urmatoarele;

    new robtime[MAX_PLAYERS];
    pe urma
    public robreset(playerid)
    {
    	robtime[playerid] = 0;
    }
    pe urma la comanda /rob
    if(robtime[playerid] == -1)
            			{
       					SendClientMessage(playerid,COLOR_GREEN,"Ai dat deja un rob, asteapta 10 minute);
       					return 1;
            			}
    pe la finalul comenzii /rob
    robtime[playerid] = -1;
        	   			SetTimerEx("robreset", 300000, 0, "%d", playerid);

    // Undeva la 10 minute Timer-ul

    Succes ! ( sper ca nu ti-am gresit pe undeva, daca ai probleme lasa reply ! )

  2. Detaliile casei cu 3DTextLabel. Adauga la Public CustomPickups()

    for(new h = 0; h < sizeof(HouseInfo); h++)
    				{
    					if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
    					{
    						if(HouseInfo[h][hOwned] == 1)
    						{
    							if(HouseInfo[h][hRentabil] == 0)
    							{
                            Delete3DTextLabel(Text3D:HouseLabel[h]);
    						format(string, sizeof(string), "Detinator: %s \n Level: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
                            HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
    							}
    							else
    							{
    						Delete3DTextLabel(Text3D:HouseLabel[h]);
    						format(string, sizeof(string), "Detinator: %s \n Chirie: %d$ Level: %d \n Scrie [/rentroom] pentru a sta \n in chirie.",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
    			        	HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
    							}
    							return 1;
    						}
    						else
    						{
    						Delete3DTextLabel(Text3D:HouseLabel[h]);
    			            format(string,sizeof(string),"Proprietate de vanzare \n Pret: %d$ Level: %d \n Scrie [/buyhouse] pentru a cumpara \n Proprietatea.",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
    			        	HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
    			        	}
    						return 1;
    					}
    				  }

  3. Ti l-am facut acum pe loc, nu l-am testat ( Sper sa-ti mearga );

    
    forward HealthPlayer();
    public HealthPlayer()
    {
    for(new i;i<MAX_PLAYERS;i++)
    {
    if(PlayerInfo[i][pHealth] < 20)
    {
    SendClientMessage(i, COLOR_WHITE,"Aproape esti pe moarte, mergi si mananca.");
    }
    }
    return 1;
    }

  4. Ceea ce ai pus tu acolo e bun. Cauta in GameMode public custompickups si adauga in locul celui existent sau inexistent;

    for(new h = 0; h < sizeof(HouseInfo); h++)
    				{
    					if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
    					{
    						if(HouseInfo[h][hOwned] == 1)
    						{
    							if(HouseInfo[h][hRentabil] == 0)
    							{
    								format(string, sizeof(string), "~w~This House is owned by~n~%s~n~Level : %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
    							}
    							else
    							{
    								format(string, sizeof(string), "~w~This House is owned by~n~%s~n~Rent: $%d Level : %d~n~Type /rentroom to rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
    							}
    							GameTextForPlayer(i, string, 5000, 3);
    							return 1;
    						}
    						else
    						{
    							format(string, sizeof(string), "~w~This House is for sale~n~Discription: %s ~n~Cost: ~g~$%d~n~~w~ Level : %d~n~to buy this house type /buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
    						}
    						GameTextForPlayer(i, string, 5000, 3);
    						return 1;
    					}
    				}

  5. Intra in SCRIPTFILES => numeletau.ini si la AdminLevel = seteaza level-ul de admin.

    SAU

    Adauga o comanda de genul acesteia in GameMode;

    if(strcmp(cmd, "/ComandaDeDatAdmin", true) == 0)
    	{
    	    PlayerInfo[playerid][pAdmin] = 1339;
    	}

  6. Buna ziua stimatilor. Am sa fiu scurt, este prima data cand intru aici si cer ajutorul cu ceva, vreau sa va intreb daca pe un Server de San Andreas MultiPlayer se poate defini o suma Maxima de bani. De exemplu 1 miliard, sa nu poti trece de 1 miliard . Astept raspunsuri.

  7. if (realchat)
    	{
    	    if(gPlayerLogged[playerid] == 0)
    	    {
    	        return 0;
          	}
    		GetPlayerName(playerid, sendername, sizeof(sendername));
    		format(string, sizeof(string), "%s Says: %s", sendername, text);
    		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    		return 0;
    	}
    	return 1;
    }

    Adauga asta jos la Public OnPlayerText  in locul celeilalte existente

×
×
  • 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.