25.05.2010, 21:08
Mi problema esque acabod e crear un FS, y todo compila bien, pero cuando boy al server pongo el comando y me dice que no soy de la faccion,-.-
alguien me puede ayudar?
Gracias!
aki les dejo el FS para que vena cual es el problema:S
alguien me puede ayudar?
Gracias!
aki les dejo el FS para que vena cual es el problema:S
Quote:
#include <a_samp> forward PlayerToPoint(Float:radi, playerid, Float ![]() enum pInfo { pKey[128], pLevel, pAdmin, pDonateRank, gPupgrade, pConnectTime, pReg, pSex, pAge, pOrigin, pCK, pMuted, pExp, pCash, pAccount, pCrimes, pKills, pDeaths, pArrested, pWantedDeaths, pPhoneBook, pLottoNr, pFishes, pBiggestFish, pJob, pPayCheck, pHeadValue, pJailed, pJailTime, pMats, pDrugs, pLeader, pMember, pFMember, pRank, pChar, pContractTime, pDetSkill, pSexSkill, pBoxSkill, pLawSkill, pMechSkill, pJackSkill, pCarSkill, pNewsSkill, pDrugsSkill, pCookSkill, pFishSkill, Float ![]() Float ![]() pInt, pLocal, pTeam, pModel, pPnumber, pPhousekey, pPcarkey, pPcarkey2, pPcarkey3, pGangKey, pPbiskey, Float ![]() Float ![]() Float ![]() pCarLic, pFlyLic, pBoatLic, pFishLic, pGunLic, pGun1, pGun2, pGun3, pGun4, pAmmo1, pAmmo2, pAmmo3, pAmmo4, pCarTime, pPayDay, pPayDayHad, pWatch, pCrashed, pWins, pLoses, pAlcoholPerk, pDrugPerk, pMiserPerk, pPainPerk, pTraderPerk, pTut, pMissionNr, pWarns, pVirWorld, pFuel, pMarried, pMarriedTo[128], pFishTool, pNote1[128], pNote1s, pNote2[128], pNote2s, pNote3[128], pNote3s, pNote4[128], pNote4s, pNote5[128], pNote5s, pInvWeapon, pInvAmmo, pLighter, pCigarettes, pRequestingBackup, pRoadblock, pMask, pMaskuse, pHideNumber, pSpeaker, pLocked, //pSQLID, }; new PlayerInfo[MAX_PLAYERS][pInfo]; new gaterusa; public OnFilterScriptInit() { gaterusa = CreateObject(969, 1421.516113, -1888.940552, 12.645407, 0.000000, 0.000000, 0.000000); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/agate", cmdtext, true, 10) == 0) { if(Ej: PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) { if(PlayerToPoint(15.0, playerid, 1421.516113, -1888.940552, 12.645407)) { MoveObject(gaterusa, 1430.789917, -1888.833984, 12.658646, 10000); Ej: SendClientMessage(playerid, 0xFFFFFF, "Abriste la reja Rusa"); } }else{ Ej: SendClientMessage(playerid, 0xFFFFF, "No eres de la faccion!"); } return 1; } return 0; } public PlayerToPoint(Float:radi, playerid, Float ![]() { if(IsPlayerConnected(playerid)) { new Float ![]() ![]() ![]() new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposy = (oldposy -z); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } } return 0; } |