Jump to content

Masodion

Membru
  • Posts

    31
  • Joined

  • Last visited

Posts posted by Masodion

  1. Salutre! De ceva timp, vad poze cu gamemode-ul asta si tot mai multi copii se lauda ca e de la 0, facut de ei, etc.. As vrea sa stiu si eu care este acest "minunat" gamemode deoarece as vrea sa incerc sa copiez dealership-ul :))

    V-am lasat mai multe poze, poate doar din poza cu dealership nu va dati seama exact de server.

     

    http://imgur.com/EyJjeTy 

    http://imgur.com/eU0g5k6 

    http://imgur.com/WgGrPDj

    http://imgur.com/wXmSsbi

    http://imgur.com/egmuiDi

    http://imgur.com/wK3hRNs

    http://imgur.com/gWlow0K

    Cam astea ar fii pozele pe care le-am gasit de cel care "se lauda si el cu gamemode de la 0 "

  2. Problema intalnita (descriere): Cand folosesc /createclan nu imi da nici un mesaj. (

    You succesful created a new clan clan! Use /cname for set the name of clan and /ctag to set the clan tag. Also you can change the clan color using /ccolor.


    Ero(area / rile) / warning-(ul / urile): ---
    Liniile de cod / sursa / script-ul(obligatoriu):

    CMD:createclan(playerid, params[])
    {
    		new i;
    		new  string[256];
    		if(playerVariables[playerid][pPremiumPoints] >= 50)
    		{
    			if(playerVariables[playerid][pClan] == 0)
    			{
    				playerVariables[playerid][pPremiumPoints] -= 50;
    				format(string, sizeof(string), "You succesful created a new clan clan! Use /cname for set the name of clan and /ctag to set the clan tag. Also you can change the clan color using /ccolor.");
    				SendClientMessage(playerid, COLOR_WHITE, string);
    				playerVariables[playerid][pClanRank] = 7;
    
    				new Cache: resultoccc = mysql_query(handle,  "INSERT INTO `clans` (`clanName`) VALUES('New Clan')");
    
    		    	i = cache_insert_id();
    		   	 	cache_delete(resultoccc);
    
    				playerVariables[playerid][pClan] = i;
    
    				format(clanVariables[i][cClanRankName1], 32, "(1) Newbie");
    				format(clanVariables[i][cClanRankName2], 32, "(2) Member");
    				format(clanVariables[i][cClanRankName3], 32, "(3) Advanced");
    				format(clanVariables[i][cClanRankName4], 32, "(4) Expert");
    				format(clanVariables[i][cClanRankName5], 32, "(5) Legend");
    				format(clanVariables[i][cClanRankName6], 32, "(6) Clan Mananger");
    				format(clanVariables[i][cClanRankName7], 32, "(7) Clan Owner");
    
    			}
    			else return SCM(playerid,COLOR_WHITE,"You already are in a clan! Use /quitclan first");
    		}
    		return 1;
    }


    Imagini / Video (optional): Nu cred ca aveti nevoie.
    Ati incercat sa rezolvati singur?: Am incercat sa pun SendClientMessage, si nu merge.

  3. enum playervEnum {
    	Float: pHealth,
    	Float: pArmour,
    	Float: pPos[3],
    	Float: specPos[3],
    	pPassword[129],
    	pStatus,
    	pRPoints,
    	pMoney,
    	pAdminLevel,
    	pManager,
    	pCrimeReason[200],
    	pAdminName[200],
    	ReportText[128],
    	ActiveReport,
    	pInterior,
    	pLevel,
    	pInsurancePoints,
    	pInsurancePoints2,
    	pInsurancePoints3,
    	pInsurancePoints4,
    	pInsurance,
    	pInsurance2,
    	pInsurance3,
    	pInsurance4,
    	pTRoute,
    	HoldingObject,
    	pTrash,
    	pFirstPerson,
    	pCarSelected,
    	pPDuty,
    	pNMuted,
    	pFarmerMoney,
    	pRMuted,
    	pNob[128],
    	pHouse,
    	pBusiness,
    	pGlasses,
    	ShowHealth,
    	pClanTagType,
    	pHelpedPlayers,
    	pGiftHours,
    	pHelperTokens,
    	pHouseKey,
    	pBusinessKey,
    	pRob,
    	pAplicationID,
    	pAdminDuty,
    	pAge,
    	pSkinSet,
    	pCall,
    	pCarID1,
    	pCarID2,
    	pCarID3,
    	pPiz,
    	pAnticheatExemption,
    	pTabbed,
    	pPremiumPoints,
    	pCarWeapons,
    	pSpawnChange,
    	pWarScore,
    	pFWarns,
    	pFPunish,
    	pCarLicensePlate[32],
    	pCarLicensePlate2[32],
    	pCarLicensePlate3[32],
    	pCarLicensePlate4[32],
    	pCarKM,
    	pCarKM2,
    	pCarKM3,
    	pCarKM4,
    	pDrugs,
    	pPhoneCredit, // Will be done in seconds.
    	pWalkieTalkie, // -1 = no walkie, 0 = switched off
    	pSpectating,
    	pSpecSession,
    	pConnectedSeconds,
    	pSpamCount,
    	pFishing,
    	pPhone,
    	pMuted,
    	pVirtualWorld,
    	pFish,
    	pFishValue,
    	pBanned,
    	pTazer,
    	pEvent,
    	Float: pCarPos1[4],
    	Float: pCarPos2[4],
    	Float: pCarPos3[4],
    	Float: pCarPos4[4],
    	pReport,
    	pPrisonTime,
    	pPrisonID, // 3 = IN CHARACTER JAIL! (future reference)
    	pHackWarnTime,
    	pHelperDuty,
    	pReportMessage[64],
    	pPlayingHours,
    	pSkin,
    	pJob,
    	pDriveLicense,
    	pGunLicense,
    	pBoatLicense,
    	pFlyLicense,
    	pAccent[40],
    	pCarLic,
    	pFlyLic,
    	pGunLic,
    	pPhoneNumber,
    	ReportingPlayer,
    	pSkinCount,
    	pSeeOOC,
    	pOOCMuted,
    	pNewbieTimeout,
    	pTutorial,
    	pWeapons[13],
    	pOutstandingWeaponRemovalSlot,
    	pJetpack,
    	pBankMoney,
    	pHackWarnings,
    	pEmail[255], // because this is the max length for a valid email.
    	pSeconds,
    	pFightStyle,
    	pInternalID,
    	pRespect,
    	pGender,
    	pNewbieEnabled,
    	pSpeaker,
    	pFirstLogin,
    	pRobPoints,
    	pHelper,
    	pCarColour1[2],
    	pCarColour2[2],
    	pCarColour3[2],
    	pCarColour4[2],
    	pMatrunTime,
    	pNormalName[MAX_PLAYER_NAME],
    	pSelected[MAX_PLAYER_NAME],
    	pReason[MAX_PLAYER_NAME],
    	pReported,
    	pReportAccepted,
    	pReportAccepted2,
    	pFP,
    	pPhoneBook,
    	pCheckpoint,
    	pPMStatus,
    	pOnRequest,
    	Text3D: pAFKLabel,
    	pGroup,
    	pClan,
    	pClanRank,
    	pCarModel1,
    	pCarModel2,
    	pCarModel3,
    	pCarModel4,
    	pCarID4,
    	pCarMods1[13],
    	pCarMods2[13],
    	pCarMods3[13],
    	pCarMods4[13],
    	pCarPaintjob,
    	pCarPaintjob3,
    	pCarPaintjob4,
    	pCarLock,
    	pWarns,
    	pCarPaintjob2,
    	pCarLock2,
    	pCarLock3,
    	pCarLock4,
    	pGroupRank,
    	pDropCarTimeout,
    	pMaterials,
    	pHeadValue,
    	pDonate,
    	pHospitalized,
    	pFreezeTime,
    	pFreezeType,
    	pDrag,
    	pAnimation,
    	pPhoneStatus,
    	pPhoneCall,
    	pConnectionIP[32],
    	pSeeWhisper,
    	pCrimes,
    	pArrests,
        pWarrants,
    	pBackup,
    	pPcarkey,
    	pHouseRented,
    	pWarDeaths,
    	pInvite[MAX_PLAYER_NAME],
    	pLastLogin[20],
    	pColor,
    	pDD,
    	pDs,
    	pDr,

     

  4. Problema intalnita (descriere): Nu pot sa dea 2 nume cand dau comanda /so . de exemplu " 

    (megaphone)Politist %s : %s esti urmarit de Politie. Trage pe Dreapta

    Prima data " Politist nume" apare, a 2-a oara nu apare numele, apare "Politistul `nume` : esti urmarit de Politie. Trage pe drepta. As vrea sa apara de 2 ori numele. Sper ca ati inteles ce vreau sa zic. (daca nu, uitati aici o poza  http://i.imgur.com/nVSaO16.png
    Ero(area / rile) / warning-(ul / urile): ---
    Liniile de cod / sursa / script-ul(obligatoriu):

    CMD:so(playerid, params[]) {
    	new
    		id;
    
    	if(sscanf(params, "us[128]", id)) {
    		SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/whisper [playerid] [message]");
    	}
    	    if(IsPlayerConnected(id) && playerVariables[id][pStatus] >= 1) {
    			if(IsPlayerInRangeOfPlayer(playerid, id, 100.0)) {
    				if(playerVariables[id][pSeeWhisper] == 0) {
    					new
    						giveplayerName[MAX_PLAYER_NAME];
    
    					GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
    
    					format(szMessage, sizeof(szMessage), "(megaphone)Politist %s : {0064FF} %d esti urmarit de Politie. Trage pe Dreapta", szPlayerName);
    					SendClientMessage(id, COLOR_YELLOW, szMessage);
    
    					GetPlayerName(id, giveplayerName, MAX_PLAYER_NAME);
    
    					format(szMessage, sizeof(szMessage), "(megaphone)Politist %s :{0064FF} %d esti urmarit de Politie. Trage pe Dreapta", giveplayerName);
    					SendClientMessage(playerid, COLOR_YELLOW, szMessage);
    
    				}
    				else SendClientMessage(playerid, COLOR_GREY, "You're too far away.");
    			}
    	    }
    	    else {
    	        SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
    	    }
    	return 1;
    }


    Imagini / Video (optional): Poza cum vreau sa apara http://i.imgur.com/nVSaO16.png
    Ati incercat sa rezolvati singur?:Da, am incercat sa adaug de 2 ori giveplayerName, dar fara reusita, si dupa szPlayerName si tot fara reusita

  5. @DCosmin am rezolvat cu /invite, dar imi cere sa-mi aleg un skin. Am luat functiile din gamemode-ul ala si le-am facut ca sa mearga, si a trebuit sa fac si un public

     

    public IsAtClothShop(playerid)
    {
        if(IsPlayerConnected(playerid))
    	{
            if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    		{//Binco & Suburban
    		    return 1;
    		}
    		else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    		{//Zip & Victim
    		    return 1;
    		}
    	}
    	return 0;
    }

    Insa primesc erori .

    C:\Users\Mihai\Desktop\0\gamemodes\w3op.pwn(3274) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Mihai\Desktop\0\gamemodes\w3op.pwn(3278) : error 004: function "PlayerToPoint" is not implemented
    Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    2 Errors.

     

     

    linia 3274 :         

    if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))

     

    linia 3278         

    		else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    		{//Zip & Victim
    		    return 1;

    Nu inteleg care ar fii erorile, playertopoint e implementat

     

    #define PTP PlayerToPoint

    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

     

    Si atat am gasit in acel gm de playertopoint 

  6. Problema intalnita (descriere): Am incercat sa fac comanda /invite (copiata dintr-un alt gamemode) si imi da erorile de mai jos.
    Ero(area / rile) / warning-(ul / urile): 

    C:\Users\Mihai\Desktop\0\gamemodes\GM.pwn(2088) : error 017: undefined symbol "giveplayer"
    C:\Users\Mihai\Desktop\0\gamemodes\GM.pwn(2088) : error 017: undefined symbol "giveplayer"
    C:\Users\Mihai\Desktop\0\gamemodes\GM.pwn(2088) : error 029: invalid expression, assumed zero
    C:\Users\Mihai\Desktop\0\gamemodes\GM.pwn(2088) : fatal error 107: too many error messages on one line
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    4 Errors.
    


    Liniile de cod / sursa / script-ul(obligatoriu): 

    //----------------------------------[INVITE]------------------------------------------------
    	if(strcmp(cmd, "/invite", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			temp = strtok(cmdtext, idx);
    			if(!strlen(temp))
    			{
    				SendClientMessage(playerid, COLOR_GRAD2, "{55D4FF}SCRIE:{B4B4B4} /invite [playerid/PartOfName]");
    				return 1;
    			}
    			new para1;
    			new ftext[20];
    			para1 = ReturnUser(temp);
    			if (PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pRank] == 6)
    			{
    			    if(IsPlayerConnected(para1))
    			    {
    			        if(para1 != INVALID_PLAYER_ID)
    			        {
    					    if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255 || PlayerInfo[para1][pLeader] == 0)
    					    {
    					        if(PlayerInfo[para1][pJob] > 0)
    					        {
    					            SendClientMessage(playerid, COLOR_GREY, "   Can't invite him, player has a Job !");
    					            return 1;
    					        }
    					        if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
    					        else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "S.R.I/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
    					        else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Armata Romana"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
    					        else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Fireman/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
    					        else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Frusin"; ChosenSkin[para1] = 124; SetPlayerSkin(para1, 124); }
    					        else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Racean"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 120); }
    					        else { return 1; }
    							GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    							GetPlayerName(playerid, sendername, sizeof(sendername));
    							PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
    							PlayerInfo[para1][pRank] = 1;
    							printf("News: %s has invited %s to join %s.", sendername, giveplayer, ftext);
    							format(string, sizeof(string), "   You have Joined the %s, you were invited by Leader %s", ftext, sendername);
    							SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    							format(string, sizeof(string), "   You have Invited %s to join the %s.", giveplayer,ftext);
    							SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    							SetPlayerInterior(para1,0);
    							new rand = random(sizeof(gInviteSpawns));
    							SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
    							SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
    							SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    							SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    							TogglePlayerControllable(para1, 0);
    						    SelectChar[para1] = 255;
    						    SelectCharID[para1] = PlayerInfo[para1][pMember];
    						    SelectCharPlace[para1] = 1;
    						    PlayerInfo[para1][pModel] = ChosenSkin[para1];
    					    	PlayerInfo[para1][pChar] = ChosenSkin[para1];
    						    SendClientMessage(para1, COLOR_LIGHTRED, "* Use 'next' to Select the char you want to use.");
    						    SendClientMessage(para1, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
    						}
    						else
    						{
    						    SendClientMessage(playerid, COLOR_GREY, "  That player is currently Wanted / a Different Team / or already a Family Member.");
    						    return 1;
    						}
    					}
    				}//not connected
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command(leaders only)!");
    			}
    		}
    		return 1;
    	}


    Imagini / Video (optional): Nu cred ca aveti nevoie.
    Ati incercat sa rezolvati singur?:Da. La linia 2088 am asa "giveplayer " . In gamemode de unde am luat comanda am la "giveplayer " 

    enum cCKInfo
    {
    	cSendername[20],
    	cGiveplayer[20],
    	cUsed,
    };

     

    Folosesc gamemode  http://www.sa-mp.ro/forums/topic/19086-mysql-r33-ideal-pentru-rpg/ . Si in "accounts.inc" am alea cu pInfo si am incercat sa adaug enum cCKInfo

    cGiveplayer

    cum e si mai sus si nu imi merge. Ce ar trebui sa-i fac?

  7. Multumes tuturor care mi-au raspuns. Dar mai am o problema, cand incerc la /exit nu merge cu tasta F sau ENTER.

     

    Cum ar trebui sa fie la comanda /exit? 

     

    La /enter e :

     

    {
        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);
    					}
    				}
    			}
    		}
        }
    }

     

     

    Si as mai vrea /exit si /enter la biz, am incercat sa modific HouseData si tot ce tine de House cu alea care le am eu la biz, si nu merge as compilez

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