Jump to content

RaduC

Membru
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by RaduC

  1. 1. ti-am spus sa faci aia pentru ca mai nou cand un jucator primeste kick, orice actiune anterioara nu se mai executa, adica mesajele... 

    2. da stiu nimic, dar cu nimic mi-am facut singur functie de ban temporar si asta acum cativa ani

    3. pana la urma problema ta este ca cel care primeste ban nu este instiintat? nu se intelege nimic

    4. linile astea de cod te-ar putea ajuta chiar mult pe tine

    sal modific = sa-l modific
    accel  = acel
    Am facut si un test cun jucator i arat asa. = ??
    pece motiv.. = pe ce motiv
    trebe = trebuie
    nu sti nmk. = nu stii nimic
    Nici text`u nui apare. = nu ii apare

  2. Inlocuieste asta:

    forward TB_KickPlayer(PlayerID);
    public TB_KickPlayer(PlayerID)
    {
    	Kick(PlayerID);
    	return 1;
    }
    cu asta:
    forward TB_KickPlayer(PlayerID);
    public TB_KickPlayer(PlayerID)
    {
    	//Kick(PlayerID);
    	return 1;
    }

    (adica renuntam unpic la Kick(playerid) )

    fa ce ti-am spus si spune-mi ce se intampla

  3. COMMAND:portloc(playerid, params[])
    {
    	// Setup local variables
    	new Float:x, Float:y, Float:z, PortMsg[128],interior;
    
    	// Send the command to all admins so they can see it
    	SendAdminText(playerid, "/portloc", params);
    
    	// Check if the player has logged in
    	if (APlayerData[playerid][LoggedIn] == true)
    	{
    		// Check if the player's admin-level is at least 1
    		if (APlayerData[playerid][PlayerLevel] >= 1)
    		{
    			// Check if the player has a wanted level of less than 3
    			if (GetPlayerWantedLevel(playerid) < 3)
    			{
    				// Check if the player is not jailed
    				if (APlayerData[playerid][PlayerJailed] == 0)
    				{
    					if (sscanf(params, "fffi", x, y, z , interior)) SendClientMessage(playerid, 0xFF0000AA, "Ex: \"/portloc <x> <y> <z> <int>"");
    					else
    					{
    						// Port the player to the given location
    						SetPlayerPos(playerid, x, y, z);
    						SetPlayerInterior(playerid,interior);
    						// Let the player know about it
    						format(PortMsg, 128, "Te-ai teleportat la locatia: %4.2f, %4.2f, %4.2f", x, y, z);
    						SendClientMessage(playerid, 0x00FF00FF, PortMsg);
    					}
    				}
    				else
    				    SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu poti utiliza /portloc at cand esti in inchisoare");
    			}
    			else
    			    SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu poti utiliza /portloc at cand esti urmarit");
    		}
    		else
    		    return 0;
    	}
    	else
    	    return 0;
    
    	// Let the server know that this was a valid command
    	return 1;
    }

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