Jump to content

IstuntmanI

Membru
  • Posts

    3.897
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by IstuntmanI

  1. IstuntmanI

    Ajutor

    1. Titlul. 2. Ia alt GM, nu poti tu sa transformi din MySQL in INI.
  2. Doar .amx - nu poti rezolva.
  3. Dezarhiveaza editor.rar si pune fisierele din el DIRECT in folderul de la GTA:SA.
  4. FF e full, iar AA este intre transparent complet si complet.
  5. \\
  6. Prea multi brazi de craciun, prea nerealist, unde ai vazut tu sute de brazi pe aceleasi strazi ? )
  7. Nu se cer scripturi.
  8. IstuntmanI

    Noul Centru

    http://forum.sa-mp.com/showthread.php?t=282801
  9. Probleme Godfather Unlock by -=[Vyorel]=-
  10. Asta e complet altceva, compilatul merge, dar n-ai urmat tu bine tutorialul. Refa dupa tutorial, si citeste si ce explica ala acolo. >.>
  11. Scoate-l din server.cfg (carownership-ul) si adauga in GM la finalul la OnGameModeInit, LA ULTIMA LINIE asta: SendRconCommand( "loadfs carownership" ); // sau cum e numele la FS
  12. Schimba cu asta: #include <a_samp> #define TEAM_GROVE 1 #define TEAM_BALLAS 2 #define TEAM_VAGOS 3 #define TAKEOVER_TIME 120 // how many seconds needed to take over the zone #define MIN_MEMBERS_TO_START_WAR 3 // how many team members needed in a zone to start a war new Teams[] = { TEAM_GROVE, TEAM_BALLAS, TEAM_VAGOS }; enum eZone { Float:zMinX, Float:zMinY, Float:zMaxX, Float:zMaxY, zTeam } new ZoneInfo[][eZone] = { {2337.9004,-1808.8383,2590.2043,-1610.3673,TEAM_GROVE}, {2084.7,-1808.8383,2337.9004,-1610.3673,TEAM_BALLAS}, {2590.2043,-1808.8383,2842.3,-1610.3673,TEAM_VAGOS} }; new ZoneAttacker[sizeof(ZoneInfo)] = {-1, ...}; new ZoneAttackTime[sizeof(ZoneInfo)]; new ZoneID[sizeof(ZoneInfo)]; public OnFilterScriptInit() { SetTimer("ZoneTimer", 1000, true); for(new i=0; i < sizeof(ZoneInfo); i++) { ZoneID[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]); } return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerSpawn(playerid) { for(new i=0; i < sizeof(ZoneInfo); i++) { GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); if(ZoneAttacker[i] != -1) GangZoneFlashForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneAttacker[i])); } return 1; } public OnVehicleSpawn(vehicleid) { for(new i=0; i < sizeof(ZoneInfo); i++) { for( new playerid = 0; playerid < MAX_PLAYERS; playerid ++ ) GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); } return 1; } stock GetTeamZoneColor(teamid) { switch(teamid) { case TEAM_GROVE: return 0x00FF0088; case TEAM_BALLAS: return 0xFF00FF88; case TEAM_VAGOS: return 0xFFFF0088; } return -1; } stock IsPlayerInZone(playerid, zoneid) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); return (x > ZoneInfo[zoneid][zMinX] && x < ZoneInfo[zoneid][zMaxX] && y > ZoneInfo[zoneid][zMinY] && y < ZoneInfo[zoneid][zMaxY]); } stock GetPlayersInZone(zoneid, teamid) { new count; for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && GetPlayerTeam(i) == teamid && IsPlayerInZone(i, zoneid)) { count++; } } return count; } forward ZoneTimer(); public ZoneTimer() { for(new i=0; i < sizeof(ZoneInfo); i++) // loop all zones { if(ZoneAttacker[i] != -1) // zone is being attacked { if(GetPlayersInZone(i, ZoneAttacker[i]) >= MIN_MEMBERS_TO_START_WAR) // team has enough members in the zone { ZoneAttackTime[i]++; if(ZoneAttackTime[i] == TAKEOVER_TIME) // zone has been under attack for enough time and attackers take over the zone { GangZoneStopFlashForAll(ZoneID[i]); ZoneInfo[i][zTeam] = ZoneAttacker[i]; GangZoneShowForAll(ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); // update the zone color for new team ZoneAttacker[i] = -1; } } else // attackers failed to take over the zone { GangZoneStopFlashForAll(ZoneID[i]); ZoneAttacker[i] = -1; } } else // check if somebody is attacking { for(new t=0; t < sizeof(Teams); t++) // loop all teams { if(Teams[t] != ZoneInfo[i][zTeam] && GetPlayersInZone(i, Teams[t]) >= MIN_MEMBERS_TO_START_WAR) // if there are enough enemies in the zone { ZoneAttacker[i] = Teams[t]; ZoneAttackTime[i] = 0; GangZoneFlashForAll(ZoneID[i], GetTeamZoneColor(ZoneAttacker[i])); } } } } }
  13. Posteaza codul de la login.
  14. IstuntmanI

    Include!

    http://code.google.com/p/controllable-npc/downloads/list
  15. IstuntmanI

    Noul Centru

    Foarte tare, folosesti JernejL's Map Editor ? ^^ 5/5, imi plac aproape toate mapele tale, daca nu toate. xD
  16. IstuntmanI

    FunIsland

    Foarte frumoasa, 10/10. :P
  17. Nu se cer scripturi.
  18. Nu se cer scripturi.
  19. Ai magneti de obiecte in tine ! Nu mai manca orice porcarie care o gasesti, poate e magnet ! ) Scoate FS-urile, daca nu merge, uita-te prin GM la OnPlayerSpawn sau prin timere sa nu aibe ceva cu createobject cu attach... nu mai am idee de altceva. :D
  20. Nu prea cred ca orice obiect de pe mapa vine la tine. E de la SetPlayerAttachedObject...
  21. http://wiki.sa-mp.com/wiki/SetTimer cu repeat la 1. http://wiki.sa-mp.com/wiki/GivePlayerWeapon
  22. Prea simpla, puteai s-o impodobesti mai mult, gen copacii decraciun ... 3/5
  23. Updateaza-ti includele din pawno/include CEL CARE-L FOLOSESTI, NU ALTUL ! FI-I ATENT ! Cu cele de la 0.3d si apoi compileaza.
  24. public OnPlayerConnect( playerid ); { RemoveBuildingForPlayer( playerid, model, x, y, z, range ); return 1; } Nici n-ai postat liniile sau macar erorile.
  25. Sterge #define SetVehicleColor #define TunnedCar #define AddStaticVehicle Titlul, citeste regulile.
×
×
  • 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.