Jump to content

LTh_LeThaL

Membru
  • Posts

    121
  • Joined

  • Last visited

    Never

Posts posted by LTh_LeThaL

  1. Salut, am o problema la Serverul meu, pica de la ceva din GameMode si as dori sa stiu, asa ca am instalat CrashDetect insa cand pornesc Serverul imi da eroare in server_log; Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.10' not found (required by plugins/crashdetect.so)) . Stie cineva de la ce e asta ?

  2. Poti sa adaugi comanda asta pentru a iesit din masina

    if (strcmp(cmd, "/exitveh", true) ==0 )
    	{
    	if(!IsPlayerInAnyVehicle(playerid)){return 1;}
    	if(GetCreatorID(vehicleid)!=0)
    	{
    	TogglePlayerControllable(playerid, 1);
    	RemovePlayerFromVehicle(playerid);
    	}
    	return 1;
    	}

  3. Poftim ti-am creat doar pana la prima factiune restul adaugi tu fix cum am facut eu schimband ID-ul factiunii si ID la skin-uri.

    if(strcmp(cmd, "/giverank", true) == 0)
    	{
            if(IsPlayerConnected(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /giverank [playerid/PartOfName] [1-6]");
                    return 1;
                }
                new para1;
                new level;
                para1 = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                level = strval(tmp);
                if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Poti da rank intre 1 si 6."); return 1; }
                if (PlayerInfo[playerid][pLeader] >= 1)
                {
                    if(IsPlayerConnected(para1))
                    {
                        if(para1 != INVALID_PLAYER_ID)
                        {
                            GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                            PlayerInfo[para1][pRank] = level;
                            format(string, sizeof(string), "Liderul tau %s ti-a dat un rank nou", sendername);
                            SendClientMessage(para1, COLOR_WHITE, string);
                            format(string, sizeof(string), "Tocmai i-ai dat membrului %s rankul %d.", giveplayer,level);
                            SendClientMessage(playerid, COLOR_WHITE, string);
                            if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                            {
    						    if(PlayerInfo[para1][pSex] == 1)
                                {
                                    // Skinuri de Barbati
                                    if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 1
                                    else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 2
                                    else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 3
                                    else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 4
                                    else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 5
                                    else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 6
                                }
                                else if(PlayerInfo[para1][pSex] == 2) // Skin de femeie
                                {
                                    PlayerInfo[para1][pChar] = 141; SetPlayerSkin(para1, SkinID);
                                }
                            }

    Tu continui cu Scriptul de la if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) si adaugi urmatoarele factiuni si Skinuri

  4. am rezolvat dar cum fac sa intre doar cel de factiunea 2?

    Uite;

    if(strcmp(cmd, "/enter", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2
    {		
    if (PlayerToPoint(3, playerid,289.8177,167.2616,1007.1719))
    {
    SetPlayerPos(playerid,1507.6525,-1510.1477,13.5473);
    SetPlayerInterior(playerid,IDINT);//inlocuie cu id-u de la int
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar nu esti membru FBI.");
    }	
    return 1;
    }
    
    if(strcmp(cmd, "/exit", true) == 0)
    	{
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2
    {		
    if (PlayerToPoint(3, playerid,1507.6525,-1510.1477,13.5473))
    {
    SetPlayerPos(playerid,289.8177,167.2616,1007.1719);
    SetPlayerInterior(playerid,0);
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE,"Ne pare rau, dar nu esti membru FBI.");
    }
    return 1;
    }

  5. MA DECI, bagi comanda asta in GM ;

    	if(strcmp(cmd, "/placeradar", true) == 0)
    	{
    		if (IsPlayerInAnyVehicle (playerid))
    		{
    		if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    		{
    		new CarID = GetPlayerVehicleID (playerid);
    		    if (VehRadarID [CarID] > -1) return 1;
    
                new Float: x, Float: y, Float: z, Float: a;
    		    GetVehiclePos (CarID, x, y, z);
    		    GetVehicleZAngle (CarID, a);
    		    SendClientMessage (playerid, COLOR_YELLOW, "Radar has been added successfully.");
    		    VehRadarID [CarID] = CreateObject (367, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 300.0);
    		    AttachObjectToVehicle (VehRadarID [CarID], CarID, 0.2, 0.50, 0.3, 0.0, 0.0, 90.0);
    
    		    for (new i = 0; i < MAX_PLAYERS; i++)
    		    {
    		        if (IsPlayerInVehicle (i, CarID))
    		        {
              			TextDrawShowForPlayer (i, RadarHud);
    				}
    		    }
    	}
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE,"Ne pare rau dar nu faci parte din factiunea ....");
    }
    return 1;
    }
    Si pe la inceputul modului defineste
    new VehRadarID[MAX_PLAYERS];
    new Text:RadarHud;

    Acum am facut eu la mine in PC Special si merge, fa cum am zis in POSTUL ASTA

  6. Adauga undeva asta si ca sa-ti apara banii cu . la stats la public ShowStats acolo unde ai Bani Cash / Bani in Banca %d pui %s

    stock FormatMoney(Float:amount, delimiter[2]=".")
    {
    	#define MAX_MONEY_STRING 16
    	new txt[MAX_MONEY_STRING];
    	format(txt, MAX_MONEY_STRING, "$%d", floatround(amount));
    	new l = strlen(txt);
    	if (amount < 0)
    	{
    	    if (l > 5) strins(txt, delimiter, l-3);
    		if (l > 8) strins(txt, delimiter, l-6);
    		if (l > 11) strins(txt, delimiter, l-9);
    	}
    	else
    	{
    		if (l > 4) strins(txt, delimiter, l-3);
    		if (l > 7) strins(txt, delimiter, l-6);
    		if (l > 10) strins(txt, delimiter, l-9);
    	}
    	return txt;
    }

  7. :)))) Pai de ce n-ai spus ca e FilterScript ma. Ia comanda si bag-o in GameMode dincolo de comanda /pay si fa-o de forma if(strcmp(cmd, "/placeradar", true) == 0)

    Oricum solutia ti-am dat-o modifica acolo ID FACTIUNE cu ID-ul factiunii careia vrei sa execute comanda.

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