Jump to content

Rappy

Membru
  • Posts

    111
  • Joined

  • Last visited

Posts posted by Rappy

  1. Ai citit partea asta ?

     

    How to use:
    - You need to define Database Info on define.inc
    - If you want to use 0.3.7 or 0.3z you need to uncomment or comment #define USE_037 1 on CCNR.pwn and Replace the includes.
    - Other information can be found on script.

  2. Din cate stiu mesajul cu Packet was modified are legatura cu jucatori care au probleme de conexiune sau care si-au luat timeout de pe server. Nu este un atac. Sunt sigur fiindca si un Beta Tester de pe SA-MP.com a zis la fel.

     

    Ai hosting dedicat pentru server?

  3. Daca nu stii cum functioneaza o baza de date MySQL ma tem ca nu prea am cu ce sa te ajut. Trebuie sa te documentezi inainte, sa vezi ce si cum. Google.com are toate informatiile , trebuie doar sa cauti. De asemenea, imi amintesc ca mi-a luat o noaptea intreaga sa-l fac sa mearga cu inregistrare de pe site. Plus ca GM-ul a fost facut pe MySQL din prima deci nu cred ca ai sanse prea mari sa-l faci pe altceva.

  4. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
        if (PRESSED(KEY_SECONDARY_ATTACK)) // Daca playerul apasa tasta Enter
        {
    		if(IsPlayerConnected(playerid)) // si daca playerul este conectat
    		{
                for(new i = 0; i < housess; i++)
    			{
    				if (PlayerToPoint(3, playerid,HouseData[i][hEntrancex], HouseData[i][hEntrancey], HouseData[i][hEntrancez]))
    				{
    					if(PlayerData[playerid][pPhousekey] == i || HouseData[i][hLock] == 0)
    					{
    						SetPlayerInterior(playerid,HouseData[i][hInt]);
    						SetPlayerVirtualWorld(playerid,HouseData[i][hWorld]);
    						SetPlayerPos(playerid,HouseData[i][hExitx],HouseData[i][hExity],HouseData[i][hExitz]);
    						GameTextForPlayer(playerid, "~w~Bine ai venit acasa", 5000, 1);
    						PlayerData[playerid][pInt] = HouseData[i][hInt];
    						PlayerData[playerid][pLocal] = i;
    						SetPlayerVirtualWorld(playerid,i);
    						InHouse[playerid] = i;
    					}
    					else
    					{
    						GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
    					}
    				}
    			}
    		}
        }
    }

     

    Pentru intrare ar fi ceva de genul. Dar trebuie sa te gandesti cum faci scriptul sa stie daca un jucator intra sau iese. Trebuie sa te folosesti de niste PlayerVariables. Cauta pe google cum sa folosesti player variables.

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