Jump to content
  • 0

pomoc Errory v Modu


Volfik

Dotaz

Čau,mam herní mod ze samp forum Cops and Robers http://forum.sa-mp.c...ad.php?t=223963 a v modu mam erory ale nevím co sněma jak to mam opravit CODE setu nechtěl vlézt ani na pastebin seto nechtělo vlézt trochu velký CODE :d

 

http://ulozto.cz/xqbwjmf/sfcrrpg-pwn

 

Budu rád za každé rady a omlouvám se že sito musíte stáhnout

Ale aspon ERRORY vám tu dám

 

 

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1783) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1786) : error 017: undefined symbol "ShowLoginScreen"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1789) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1792) : error 017: undefined symbol "ShowRegisterScreen"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1827) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1828) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1829) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1830) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1831) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1832) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1833) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1834) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1835) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1836) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1837) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1838) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1839) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1840) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1841) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1842) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1846) : error 004: function "ResetVariables" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1855) : error 004: function "RemoveRoadblock" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1878) : error 017: undefined symbol "PlayerName"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1908) : error 017: undefined symbol "PlayerObjectUpdate"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2052) : error 017: undefined symbol "StopLoopingAnim"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2058) : error 017: undefined symbol "PlayerName"

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

26 Errors.

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0

takže třeba uplně dolu ja jsemto vložil do OnGameModeInit a ono to napsalo

 

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1791) : error 017: undefined symbol "ShowLoginScreen"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1797) : error 017: undefined symbol "ShowRegisterScreen"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1851) : error 004: function "ResetVariables" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1860) : error 004: function "RemoveRoadblock" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(1913) : error 017: undefined symbol "PlayerObjectUpdate"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2057) : error 017: undefined symbol "StopLoopingAnim"

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2209) : error 004: function "RemoveRoadblock" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2224) : error 004: function "IncreaseWantedLevel" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2227) : error 004: function "SendClientMessageToAllCops" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2234) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2242) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2251) : error 004: function "DecreasePlayerScore" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2255) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2263) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2272) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2283) : error 004: function "IncreaseWantedLevel" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2288) : error 004: function "SendClientMessageToAllCops" is not implemented

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2289) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2298) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2309) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2321) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2333) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2345) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2357) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2368) : error 079: inconsistent return types (array & non-array)

C:\Users\Bubu\Desktop\SFCRRPG.pwn(2380) : error 079: inconsistent return types (array & non-array)

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

26 Errors.

 

Code GameModeInit

 

public OnGameModeInit()
{
new string[128];
format(string,sizeof(string),"hostname %s %s v%s",sabbv,svname,sversion);
SendRconCommand(string);

SetGameModeText("BrnoMod[1.1]");
SetTeamCount(1);
AllowInteriorWeapons(1);
UsePlayerPedAnims();
SetWorldTime(12);
SetWeather(10);
ManualVehicleEngineAndLights();
AllowAdminTeleport(1);
ConnectNPC("Billy","SFTram");
#if USE_IRC == true
//IRC Connect
SetTimerEx("IRC_ConnectDelay", 5000, 0, "d", 1);
SetTimerEx("IRC_ConnectDelay", 10000, 0, "d", 2);
SetTimerEx("IRC_ConnectDelay", 15000, 0, "d", 3);
gGroupID = IRC_CreateGroup();
gGroupAdminID = IRC_CreateGroup();
#endif

//Timers
SetTimer("PlayerOneSecondVariables",1000,1);
SetTimer("ServerOneSecondVariables",1000,1);
SetTimer("checkpointUpdate",1100,1);
SetTimer("SFPDGatesOpen",1000,1);
SetTimer("ArmyGatesOpen",1000,1);
SetTimer("CIAGatesOpen",1000,1);
SetTimer("FBIRightGatesOpen",1000,1);
SetTimer("FBILeftGatesOpen",1000,1);
SetTimer("TaxiPay",60000,1);
SetTimer("TimeWorld",60000,1);
SetTimer("HasSTITimer",10000,1);
SetTimer("RandomMessage",120000,1);
SetTimer("TextDrawColorChange",120000,1);
SetTimer("GameModeText",120000,1);
timer = SetTimer("Timer",500,1);
if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);

//Gang Zones (Area Colour)
ArmyZone = GangZoneCreate(-1546.4114,260.0058,-1222.0865,521.8784);
FBIZone = GangZoneCreate(-1780.9791,939.1539,-1683.4225,1063.1093);
CIAZone = GangZoneCreate(-1336.4915,705.7386,-1182.2593,823.7599);
SFPDZone = GangZoneCreate(-1701.5393,647.1263,-1571.7961,718.8061);
TaxiZone = GangZoneCreate(-1681.0787,1278.7904,-1632.4701,1331.4086);

// Player Classes
AddPlayerClass(266,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop
AddPlayerClass(211,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // female citycop
AddPlayerClass(265,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop
AddPlayerClass(267,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop
AddPlayerClass(283,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // police
AddPlayerClass(284,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // police
AddPlayerClass(285,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // police
AddPlayerClass(286,-1722.3170,1018.0255,17.5859,88.8758,3,1,22,50,29,500); // fbi
AddPlayerClass(287,2941.0012,468.3174,21.6395,49.3062,24,50,30,500,34,20); // army
AddPlayerClass(164,-1590.5083,716.0220,-5.2422,269.2736,23,100,25,50,0,0); // CIA spawn
AddPlayerClass(122,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // plain clothes
AddPlayerClass(71,-1261.6409,38.9104,14.1387,226.4688,3,1,22,50,29,500); // air cops
AddPlayerClass(71,-1552.3872,1275.2610,7.1845,177.3413,3,1,22,50,29,500); // marine unit new
AddPlayerClass(276,1624.2527,1821.0498,10.8203,5.6779,22,50,0,0,0,0); // medic 2
AddPlayerClass(50,2006.1929,2295.9451,10.8203,177.4306,22,50,0,0,0,0); // mechanic spawn
AddPlayerClass(133,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn male
AddPlayerClass(151,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn female
AddPlayerClass(12,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin
AddPlayerClass(23,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin
AddPlayerClass(29,2815.0498,2254.1252,10.8203,158.6954,0,0,0,0,0,0); // hoody skin civi
AddPlayerClass(294,2814.0542,2253.4043,10.8203,315.9051,0,0,0,0,0,0); // woozie skin
AddPlayerClass(214,2812.1963,2247.7256,10.8203,352.8735,0,0,0,0,0,0); // civi
AddPlayerClass(1,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
AddPlayerClass(15,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
AddPlayerClass(34,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
AddPlayerClass(2,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
AddPlayerClass(9,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0); // civil skin
AddPlayerClass(19,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
AddPlayerClass(22,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
AddPlayerClass(26,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
AddPlayerClass(31,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
AddPlayerClass(45,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
AddPlayerClass(46,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
AddPlayerClass(9,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); // civil skin
AddPlayerClass(13,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(14,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(24,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(33,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(36,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(38,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(160,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(82,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(107,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(59,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(127,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(128,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(138,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(28,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(147,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(299,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(123,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(204,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(249,2193.7366,2007.4865,12.2894,358.2378,15,1,15,500,28,500); //Pimp skin
AddPlayerClass(264,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(269,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(270,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(293,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // OG Loc
AddPlayerClass(271,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(298,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // gloris skin///141
AddPlayerClass(137,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // Box on head Hobo guy

//Menu designs
SkillMenu = CreateMenu("~b~Skill ~w~Selection",1,15,150,200);
SetMenuColumnHeader(SkillMenu , 0, "~w~Please select your skill");
AddMenuItem(SkillMenu,0,"Rapist");
AddMenuItem(SkillMenu,0,"Drug Dealer");
AddMenuItem(SkillMenu,0,"Weapon Dealer");
AddMenuItem(SkillMenu,0,"Hitman");
AddMenuItem(SkillMenu,0,"Car Jacker");
AddMenuItem(SkillMenu,0,"Kidnapper");
AddMenuItem(SkillMenu,0,"Thief");
AddMenuItem(SkillMenu,0,"Terrorist");

//Textdraws
VersionTD = TextDrawCreate(3.000000, 433.000000, "Verze: 1.1");
TextDrawBackgroundColor(VersionTD, -1);
TextDrawFont(VersionTD, 1);
TextDrawLetterSize(VersionTD, 0.519999, 1.300000);
TextDrawColor(VersionTD, 65535);
TextDrawSetOutline(VersionTD, 1);
TextDrawSetProportional(VersionTD, 1);
TextDrawUseBox(VersionTD, 1);
TextDrawBoxColor(VersionTD, 255);
TextDrawTextSize(VersionTD, 637.000000, 0.000000);

format(string,sizeof(string),"Web: %s",sweb);
WebsiteTD = TextDrawCreate(394.000000, 433.000000, string);
TextDrawBackgroundColor(WebsiteTD, -1);
TextDrawFont(WebsiteTD, 1);
TextDrawLetterSize(WebsiteTD, 0.529999, 1.300000);
TextDrawColor(WebsiteTD, -16711681);
TextDrawSetOutline(WebsiteTD, 1);
TextDrawSetProportional(WebsiteTD, 1);

//Pickups
FBIInsidePickup = CreatePickup(1239,1,246.3956,87.5255,1003.6406,0);
FBIRoofPickup = CreatePickup(1239,1,-1750.0658,980.9041,95.8510,0);
FBIGaragePickup = CreatePickup(1239,1,-1716.3550,1018.1495,17.5859,0);

//Solid Objects
//SFPD Gates
SFPDRightGate = CreateObject(971,-1627.33483887,688.32006836,9.80140114,0.00000000,0.00000000,0.00000000); //object(sfpdrightgate)(1)
SFPDLeftGate = CreateObject(971,-1636.18347168,688.50933838,9.80140114,0.00000000,0.00000000,178.24902344); //object(sfpdleftgate)(2)
SFPDShutter = CreateObject(2957,-1620.61669922,688.17712402,7.80728531,0.00000000,0.00000000,0.00000000); //object(sfpdshutter)(1)

//Army base
ArmyGate = CreateObject(971,-1530.15380859,482.34051514,8.83757210,0.00000000,0.00000000,179.26562500); //object(gate)(1)
CreateObject(3997,-1301.21313477,377.17645264,6.10084248,0.00000000,0.00000000,0.00000000); //object(armyground)(1)
CreateObject(4726,-1248.46887207,457.03024292,5.45363998,0.00000000,0.00000000,0.00000000); //object(hydra pad)(1)
CreateObject(4726,-1297.24182129,457.55130005,5.34741545,0.00000000,0.00000000,0.00000000); //object(hunter pad)(2)//CIA Base
CreateObject(3997,-1259.44140625,763.71417236,5.62989998,0.00000000,0.00000000,352.46936035); //object(ciaground)(1)
CIALeftGate = CreateObject(971,-1336.73291016,791.96447754,9.24380112,0.00000000,0.00000000,83.33264160); //object(ciarightgate)(1)
CIARightGate = CreateObject(971,-1337.82531738,783.17510986,9.24380112,0.00000000,0.00000000,262.99182129); //object(cialeftgate)(2)
CreateObject(4726,-1278.66345215,799.98425293,4.47114134,0.00000000,0.00000000,262.30816650); //object(libtwrhelipd_lan2)(1)
CreateObject(4726,-1240.11083984,793.05010986,4.47114134,0.00000000,0.00000000,262.99182129); //object(libtwrhelipd_lan2)(2)
CIABuilding = CreateObject(4564,-1207.69787598,737.33392334,114.88327789,0.00000000,0.00000000,352.52142334); //object(laskyscrap2_lan)(1)
CIASat = CreateObject(16613,-1316.09350586,813.32238770,5.31122589,0.00000000,0.00000000,81.75177002); //object(des_bigtelescope)(1)
CIABridge = CreateObject(5296,-1484.06884766,806.24200439,11.40033340,0.00000000,0.00000000,173.24121094); //object(laroads_26a_las01)(1)
//FBI Base
FBIRightGate = CreateObject(980,-1781.65063477,971.39666748,26.50776672,0.00000000,0.00000000,90.21514893); //object(fbirightgate)(1)
FBILeftGate = CreateObject(980,-1781.49548340,996.09625244,26.50776672,0.00000000,0.00000000,270.38476562); //object(fbileftgate)(2)
FBIShutter = CreateObject(2957,246.42794800,72.70855713,1004.26043701,0.00000000,0.00000000,0.00000000); //object(fbiinsideshutter)(1)
CreateObject(4726,-1754.17224121,988.74639893,96.76550293,0.00000000,0.00000000,0.00000000); //object(helipad)(1) //Vehicles
//Tram
NPCTram = AddStaticVehicle(449,-1539.1951,791.7335,7.4973,354.2815,1,74); // Tram
//
//Mechanic Vehicles
//Marine Support Vehicles
//FBI Vehicles
//CIA Vehicles
//Police Vehicle
//Civilian Vehicles
//Medic Vehicles
//////////////////
//Civilian Vehicle
for(new v=0; v<MAX_VEHICLES; v++)
{
 VehicleInfo[v][bought] =999;
 VehicleInfo[v][stolen] =0;
 VehicleInfo[v][bombed] =0;
}
return 1;
}
stock PlayerName(playerid){
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
return name;
}

 

 

public OnGameModeInit()

{

new string[128];

format(string,sizeof(string),"hostname %s %s v%s",sabbv,svname,sversion);

SendRconCommand(string);

 

SetGameModeText("BrnoMod[1.1]");

SetTeamCount(1);

AllowInteriorWeapons(1);

UsePlayerPedAnims();

SetWorldTime(12);

SetWeather(10);

ManualVehicleEngineAndLights();

AllowAdminTeleport(1);

ConnectNPC("Billy","SFTram");

 

#if USE_IRC == true

//IRC Connect

SetTimerEx("IRC_ConnectDelay", 5000, 0, "d", 1);

SetTimerEx("IRC_ConnectDelay", 10000, 0, "d", 2);

SetTimerEx("IRC_ConnectDelay", 15000, 0, "d", 3);

gGroupID = IRC_CreateGroup();

gGroupAdminID = IRC_CreateGroup();

#endif

 

//Timers

SetTimer("PlayerOneSecondVariables",1000,1);

SetTimer("ServerOneSecondVariables",1000,1);

SetTimer("checkpointUpdate",1100,1);

SetTimer("SFPDGatesOpen",1000,1);

SetTimer("ArmyGatesOpen",1000,1);

SetTimer("CIAGatesOpen",1000,1);

SetTimer("FBIRightGatesOpen",1000,1);

SetTimer("FBILeftGatesOpen",1000,1);

SetTimer("TaxiPay",60000,1);

SetTimer("TimeWorld",60000,1);

SetTimer("HasSTITimer",10000,1);

SetTimer("RandomMessage",120000,1);

SetTimer("TextDrawColorChange",120000,1);

SetTimer("GameModeText",120000,1);

timer = SetTimer("Timer",500,1);

if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);

 

//Gang Zones (Area Colour)

ArmyZone = GangZoneCreate(-1546.4114,260.0058,-1222.0865,521.8784);

FBIZone = GangZoneCreate(-1780.9791,939.1539,-1683.4225,1063.1093);

CIAZone = GangZoneCreate(-1336.4915,705.7386,-1182.2593,823.7599);

SFPDZone = GangZoneCreate(-1701.5393,647.1263,-1571.7961,718.8061);

TaxiZone = GangZoneCreate(-1681.0787,1278.7904,-1632.4701,1331.4086);

 

// Player Classes

AddPlayerClass(266,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop

AddPlayerClass(211,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // female citycop

AddPlayerClass(265,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop

AddPlayerClass(267,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop

AddPlayerClass(283,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // police

AddPlayerClass(284,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // police

AddPlayerClass(285,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // police

AddPlayerClass(286,-1722.3170,1018.0255,17.5859,88.8758,3,1,22,50,29,500); // fbi

AddPlayerClass(287,2941.0012,468.3174,21.6395,49.3062,24,50,30,500,34,20); // army

AddPlayerClass(164,-1590.5083,716.0220,-5.2422,269.2736,23,100,25,50,0,0); // CIA spawn

AddPlayerClass(122,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // plain clothes

AddPlayerClass(71,-1261.6409,38.9104,14.1387,226.4688,3,1,22,50,29,500); // air cops

AddPlayerClass(71,-1552.3872,1275.2610,7.1845,177.3413,3,1,22,50,29,500); // marine unit new

AddPlayerClass(276,1624.2527,1821.0498,10.8203,5.6779,22,50,0,0,0,0); // medic 2

AddPlayerClass(50,2006.1929,2295.9451,10.8203,177.4306,22,50,0,0,0,0); // mechanic spawn

AddPlayerClass(133,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn male

AddPlayerClass(151,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn female

AddPlayerClass(12,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin

AddPlayerClass(23,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin

AddPlayerClass(29,2815.0498,2254.1252,10.8203,158.6954,0,0,0,0,0,0); // hoody skin civi

AddPlayerClass(294,2814.0542,2253.4043,10.8203,315.9051,0,0,0,0,0,0); // woozie skin

AddPlayerClass(214,2812.1963,2247.7256,10.8203,352.8735,0,0,0,0,0,0); // civi

AddPlayerClass(1,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin

AddPlayerClass(15,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin

AddPlayerClass(34,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin

AddPlayerClass(2,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin

AddPlayerClass(9,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0); // civil skin

AddPlayerClass(19,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin

AddPlayerClass(22,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin

AddPlayerClass(26,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin

AddPlayerClass(31,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin

AddPlayerClass(45,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin

AddPlayerClass(46,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin

AddPlayerClass(9,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); // civil skin

AddPlayerClass(13,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(14,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(24,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(33,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(36,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(38,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(160,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(82,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(107,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(59,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(127,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(128,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(138,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(28,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(147,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(299,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(123,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(204,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(249,2193.7366,2007.4865,12.2894,358.2378,15,1,15,500,28,500); //Pimp skin

AddPlayerClass(264,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(269,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(270,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(293,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // OG Loc

AddPlayerClass(271,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin

AddPlayerClass(298,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // gloris skin///141

AddPlayerClass(137,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // Box on head Hobo guy

 

//Menu designs

SkillMenu = CreateMenu("~b~Skill ~w~Selection",1,15,150,200);

SetMenuColumnHeader(SkillMenu , 0, "~w~Please select your skill");

AddMenuItem(SkillMenu,0,"Rapist");

AddMenuItem(SkillMenu,0,"Drug Dealer");

AddMenuItem(SkillMenu,0,"Weapon Dealer");

AddMenuItem(SkillMenu,0,"Hitman");

AddMenuItem(SkillMenu,0,"Car Jacker");

AddMenuItem(SkillMenu,0,"Kidnapper");

AddMenuItem(SkillMenu,0,"Thief");

AddMenuItem(SkillMenu,0,"Terrorist");

 

//Textdraws

VersionTD = TextDrawCreate(3.000000, 433.000000, "Verze: 1.1");

TextDrawBackgroundColor(VersionTD, -1);

TextDrawFont(VersionTD, 1);

TextDrawLetterSize(VersionTD, 0.519999, 1.300000);

TextDrawColor(VersionTD, 65535);

TextDrawSetOutline(VersionTD, 1);

TextDrawSetProportional(VersionTD, 1);

TextDrawUseBox(VersionTD, 1);

TextDrawBoxColor(VersionTD, 255);

TextDrawTextSize(VersionTD, 637.000000, 0.000000);

 

format(string,sizeof(string),"Web: %s",sweb);

WebsiteTD = TextDrawCreate(394.000000, 433.000000, string);

TextDrawBackgroundColor(WebsiteTD, -1);

TextDrawFont(WebsiteTD, 1);

TextDrawLetterSize(WebsiteTD, 0.529999, 1.300000);

TextDrawColor(WebsiteTD, -16711681);

TextDrawSetOutline(WebsiteTD, 1);

TextDrawSetProportional(WebsiteTD, 1);

 

//Pickups

FBIInsidePickup = CreatePickup(1239,1,246.3956,87.5255,1003.6406,0);

FBIRoofPickup = CreatePickup(1239,1,-1750.0658,980.9041,95.8510,0);

FBIGaragePickup = CreatePickup(1239,1,-1716.3550,1018.1495,17.5859,0);

 

//Solid Objects

//SFPD Gates

SFPDRightGate = CreateObject(971,-1627.33483887,688.32006836,9.80140114,0.00000000,0.00000000,0.00000000); //object(sfpdrightgate)(1)

SFPDLeftGate = CreateObject(971,-1636.18347168,688.50933838,9.80140114,0.00000000,0.00000000,178.24902344); //object(sfpdleftgate)(2)

SFPDShutter = CreateObject(2957,-1620.61669922,688.17712402,7.80728531,0.00000000,0.00000000,0.00000000); //object(sfpdshutter)(1)

 

//Army base

ArmyGate = CreateObject(971,-1530.15380859,482.34051514,8.83757210,0.00000000,0.00000000,179.26562500); //object(gate)(1)

CreateObject(3997,-1301.21313477,377.17645264,6.10084248,0.00000000,0.00000000,0.00000000); //object(armyground)(1)

CreateObject(4726,-1248.46887207,457.03024292,5.45363998,0.00000000,0.00000000,0.00000000); //object(hydra pad)(1)

CreateObject(4726,-1297.24182129,457.55130005,5.34741545,0.00000000,0.00000000,0.00000000); //object(hunter pad)(2)

 

//CIA Base

CreateObject(3997,-1259.44140625,763.71417236,5.62989998,0.00000000,0.00000000,352.46936035); //object(ciaground)(1)

CIALeftGate = CreateObject(971,-1336.73291016,791.96447754,9.24380112,0.00000000,0.00000000,83.33264160); //object(ciarightgate)(1)

CIARightGate = CreateObject(971,-1337.82531738,783.17510986,9.24380112,0.00000000,0.00000000,262.99182129); //object(cialeftgate)(2)

CreateObject(4726,-1278.66345215,799.98425293,4.47114134,0.00000000,0.00000000,262.30816650); //object(libtwrhelipd_lan2)(1)

CreateObject(4726,-1240.11083984,793.05010986,4.47114134,0.00000000,0.00000000,262.99182129); //object(libtwrhelipd_lan2)(2)

CIABuilding = CreateObject(4564,-1207.69787598,737.33392334,114.88327789,0.00000000,0.00000000,352.52142334); //object(laskyscrap2_lan)(1)

CIASat = CreateObject(16613,-1316.09350586,813.32238770,5.31122589,0.00000000,0.00000000,81.75177002); //object(des_bigtelescope)(1)

CIABridge = CreateObject(5296,-1484.06884766,806.24200439,11.40033340,0.00000000,0.00000000,173.24121094); //object(laroads_26a_las01)(1)

 

//FBI Base

FBIRightGate = CreateObject(980,-1781.65063477,971.39666748,26.50776672,0.00000000,0.00000000,90.21514893); //object(fbirightgate)(1)

FBILeftGate = CreateObject(980,-1781.49548340,996.09625244,26.50776672,0.00000000,0.00000000,270.38476562); //object(fbileftgate)(2)

FBIShutter = CreateObject(2957,246.42794800,72.70855713,1004.26043701,0.00000000,0.00000000,0.00000000); //object(fbiinsideshutter)(1)

CreateObject(4726,-1754.17224121,988.74639893,96.76550293,0.00000000,0.00000000,0.00000000); //object(helipad)(1)

 

//Vehicles

//Tram

NPCTram = AddStaticVehicle(449,-1539.1951,791.7335,7.4973,354.2815,1,74); // Tram

//

//Mechanic Vehicles

//Marine Support Vehicles

//FBI Vehicles

//CIA Vehicles

//Police Vehicle

//Civilian Vehicles

//Medic Vehicles

//////////////////

//Civilian Vehicle

for(new v=0; v<MAX_VEHICLES; v++)

{

VehicleInfo[v][bought] =999;

VehicleInfo[v][stolen] =0;

VehicleInfo[v][bombed] =0;

}

return 1;

}

 

stock PlayerName(playerid){

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid,name,MAX_PLAYER_NAME);

return name;

}

 

a mam tam pouze toto hodit anebo ktomu ještě mam něco připsat ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...