Jump to content

doryn3l

Membru
  • Posts

    31
  • Joined

  • Last visited

    Never

Posts posted by doryn3l

  1. Foloseste asta http://forum.sa-mp.com/showthread.php?t=109669&highlight=save+tune si CMD-ul asta:

    [pawn]if(strcmp(cmd, "/park", true) == 0) // Seba97

    {

        {

      if(gPlayerLogged[playerid] == 1)

    {

            if(IsPlayerConnected(playerid))

                {

                new Float:x,Float:y,Float:z;

    new Float:a;

    new carid;

    new getcarid;

    if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }

    else { return 1; }

    getcarid = GetPlayerVehicleID(playerid);

    GetPlayerName(playerid, playername, sizeof(playername));

    GetVehiclePos(carid, x, y, z);

    //GetPlayerFacingAngle(playerid, a);

    GetVehicleZAngle(carid, a);

    if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)

    {

      if(PlayerInfo[playerid][pPcarkey] == 999)

    {

    SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");

    return 1;

    }

    if(getcarid == carid)

    {

    CarInfo[carid][cLocationx] = x;

    CarInfo[carid][cLocationy] = y;

    CarInfo[carid][cLocationz] = z;

    CarInfo[carid][cAngle] = a;

    format(string, sizeof(string), "~n~ Car Parked ~n~");

    GameTextForPlayer(playerid, "You have parked your vehicle in this position. It will respawn here.", 10000, 3);

    OnPropUpdate();

    OnPlayerUpdateEx(playerid);

    DestroyVehicle(carid);

    CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);

    TogglePlayerControllable(playerid, 1);

                                                            SetVehicleToRespawn(carid);

    return 1;

      }

            }

                    else

                    {

                        SendClientMessage(playerid, COLOR_GREY, "You are not driving your car");

                        return 1;

      }

          }

                else

                {

                    SendClientMessage(playerid, COLOR_GREY, "You need to login to use this command");

                    return 1;

    }

            }

    }

    return 1;

    }[/pawn]

  2. Da ma ia zi cum ai aflat coordonatele de la frizuri

    Haide sa copiem toti fs-uri de pe samp.com si sa le facem in dialog sau daca is in dialog sa le facem normale ce ar fi

    Esti penibil, macar daca dowloandai FS-u si vedeai ce scrie in el la credits, dar ce sa iti cer la 13-14 ani pe care ii ai..

  3. [pawn]forward pdclose()[/pawn]

    [pawn]new pdgate;[/pawn]

    [pawn]            else if(PlayerToPoint(5.0,i, coord de unde sa se deschida gate))

                {

        if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1)

        {

          MoveObject(pdgate, coord obiect unde sa se miste ,5.0);

                  SetTimerEx("pdclose",5000,false,"d",i);

                }

                }[/pawn]

    [pawn]pdgate = CreateObject( obiectul facut in mta );[/pawn]

    [pawn]public pdclose()

    {

      MoveObject(pdgate,coord ob pentru a reveni la loc,5.0);

    }[/pawn]

    Uite si un gate pentru garajul LSPD. Pentru FBI si NG faci la fel.

    [pawn]forward pdclose();[/pawn]

    [pawn]new pdgate;[/pawn]

    [pawn]            else if(PlayerToPoint(5.0,i,1586.906128, -1638.418213, 15.071732))

                {

        if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1)

        {

          MoveObject(pdgate,1586.906128, -1638.418213, 6.071732,5.0);

                  SetTimerEx("pdclose",5000,false,"d",i);

                }

                }[/pawn]

    [pawn]pdgate = CreateObject(980, 1586.906128, -1638.418213, 15.071732, 0.0000, 0.0000, 0.0000);[/pawn]

    [pawn]public pdclose()

    {

      MoveObject(pdgate,1586.906128, -1638.418213, 15.071732,5.0);

    }[/pawn]

  4. Am o intreabare de ai pus asa?

    [pawn]SkinOffSet[skin][8], SkinOffSet[skin][8], SkinOffSet[skin][8]);[/pawn]

    Acolo vin skinurile la care nu se potrivesc frizurile.

    Tot ce a facut el a adaugat un dialog

    http://forum.sa-mp.com/showthread.php?t=246136&highlight=hair

    Fix 5 modele aceleasi si daca dai /default til dai jos +ca a venit cu aceleasi nume

    Eu am de foarte mult timp frizurile pe serverul meu

    Macar daca le gasea si el alt nume

    Dialogul probabil la facut cu un dialog creator

    EDIT:

    Am o intreabare de ai pus asa?
    Pawno Code: [Select]
    
    SkinOffSet[skin][8], SkinOffSet[skin][8], SkinOffSet[skin][8]);

    Degeaba il intrebi daca nu e facut de el nu are cum sa iti raspunda :wink:

    Ai 'dreptate'.

    5 frizuri sunt in sa-mp desteptu lu' peste. http://wiki.sa-mp.com/wiki/Samp_objects

  5. Acest FS contine 5 frizuri care le vi le puteti procura de la o frizerie contra cost.

    Tastand comanda /frizura va aparea un dialog cu 5 frizuri. Fiecare frizura are un pret random.

    57696475098763097339.jpg

    31433762099015653746.jpg

    <a href="http://www.solidfiles.com/d/5b05f2a2db/">Frizura.pwn</a>

    <a href="http://www.solidfiles.com/d/6871b84338/">Frizura.amx</a>

    Este primul FS create de mine

  6. 	if(strcmp(cmd, "/shout", true) == 0 || strcmp(cmd, "/s", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    	        if(gPlayerLogged[playerid] == 0)
    	        {
    	            SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
    	            return 1;
    	        }
    			GetPlayerName(playerid, sendername, sizeof(sendername));
    			new length = strlen(cmdtext);
    			while ((idx < length) && (cmdtext[idx] <= ' '))
    			{
    				idx++;
    			}
    			new offset = idx;
    			new result[64];
    			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    			{
    				result[idx - offset] = cmdtext[idx];
    				idx++;
    			}
    			result[idx - offset] = EOS;
    			result[0] = toupper(result[0]);
    			if(!strlen(result))
    			{
    				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/s)hout [local chat]");
    				return 1;
    			}
    			if(Disguise[playerid] == 0)
    			{
    			format(string, sizeof(string), "%s Shouts: %s!!", sendername, result);
    			ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
    			printf("%s", string);
    			}
    			else if(Disguise[playerid] == 1)
    			{
    			format(string, sizeof(string), "Unknown Shouts: %s!!", result);
    			ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
    			printf("%s", string);
    			}
                if(DisguiseA[playerid] == 0)
    			{
    			format(string, sizeof(string), "%s Shouts: %s!!", sendername, result);
    			ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
    			printf("%s", string);
    			}
    			else if(DisguiseA[playerid] == 1)
    			{
    			format(string, sizeof(string), "Unknown Shouts: %s!!", result);
    			ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
    			printf("%s", string);
    			}
    		}
    		return 1;
    	}
    	if(strcmp(cmd, "/me", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    	        if(gPlayerLogged[playerid] == 0)
    	        {
    	            SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
    	            return 1;
    	        }
    			GetPlayerName(playerid, sendername, sizeof(sendername));
    			new length = strlen(cmdtext);
    			while ((idx < length) && (cmdtext[idx] <= ' '))
    			{
    				idx++;
    			}
    			new offset = idx;
    			new result[64];
    			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    			{
    				result[idx - offset] = cmdtext[idx];
    				idx++;
    			}
    			result[idx - offset] = EOS;
    			if(!strlen(result))
    			{
    				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /me [action]");
    				return 1;
    			}
    			if(PlayerInfo[playerid][pMaskuse] == 1)
    			{
    			    format(string, sizeof(string), "* Strainul %s", result);
    			}
    			else
    			{
    				format(string, sizeof(string), "* %s %s", sendername, result);
    			}
    			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    			printf("%s", string);
    		}
    		return 1;
    	}
    	if(strcmp(cmd, "/do", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    	        if(gPlayerLogged[playerid] == 0)
    	        {
    	            SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
    	            return 1;
    	        }
    			GetPlayerName(playerid, sendername, sizeof(sendername));
    			new length = strlen(cmdtext);
    			while ((idx < length) && (cmdtext[idx] <= ' '))
    			{
    				idx++;
    			}
    			new offset = idx;
    			new result[64];
    			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    			{
    				result[idx - offset] = cmdtext[idx];
    				idx++;
    			}
    			result[idx - offset] = EOS;
    			if(!strlen(result))
    			{
    				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /do [action]");
    				return 1;
    			}
    			if(Disguise[playerid] == 0)
    			{
    			format(string, sizeof(string), "* %s ((%s))", result, sendername);
    			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    			printf("%s", string);
    			}
    			else if(Disguise[playerid] == 1)
    			{
                format(string, sizeof(string), "*  %s((Unknown))", result);
    			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    			printf("%s", string);
    			}
                if(DisguiseA[playerid] == 0)
    			{
    			format(string, sizeof(string), "* %s ((%s))", result, sendername);
    			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    			printf("%s", string);
    			}
    			else if(DisguiseA[playerid] == 1)
    			{
                format(string, sizeof(string), "*  %s((Unknown))", result);
    			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    			printf("%s", string);
    			}
    		}
    		return 1;
    	}
    	if (realchat)
    	{
    	    if(gPlayerLogged[playerid] == 0)
    	    {
    	        return 0;
          	}
          	if(Disguise[playerid] == 1)
          	{
              format(string, sizeof(string), "Unknown Says: %s",text);
    		  ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    		  return 0;
    		}
            if(DisguiseA[playerid] == 1)
          	{
              format(string, sizeof(string), "Unknown Says: %s",text);
    		  ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    		  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;
    }
    

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