Szerző Téma: Pawno gond, segítség!  (Megtekintve 2867 alkalommal)

Pawno gond, segítség!
« Dátum: 2014. május 12. - 16:02:48 »
0 Show voters
Sziasztok!
Segítségeteket kérném, mivel nem nagyon értek a scripteléshez.
Összedobtam egy szervert a haverokkal hülyéskedni.
Van benne pár hiba. Megkéne csinálni és egy fejes lábas rendszert belerakni, mindent code ban írok:
Alap mod(kijívítani a hibákat):
 
//----------------------------------------------------------
//
//  GRAND LARCENY  1.0
//  A freeroam gamemode for SA-MP 0.3
//
//----------------------------------------------------------
#include <a_samp>
#include <core>
#include <float>
#include \"../include/gl_common.inc\"
#include \"../include/gl_spawns.inc\"
#pragma tabsize 0
//----------------------------------------------------------
#define COLOR_WHITE       0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777
#define CITY_LOS_SANTOS    0
#define CITY_SAN_FIERRO    1
#define CITY_LAS_VENTURAS    2
new total_vehicles_from_files=0;
// Class selection globals
new gPlayerCitySelection[MAX_PLAYERS];
new gPlayerHasCitySelected[MAX_PLAYERS];
new gPlayerLastCitySelectionTick[MAX_PLAYERS];
new Text:txtClassSelHelper;
new Text:txtLosSantos;
new Text:txtSanFierro;
new Text:txtLasVenturas;
new thisanimid=0;
new lastanimid=0;
//----------------------------------------------------------
main()
{
print(\"\\n---------------------------------------\");
print(\"[HUN]War by HunGamer1000\\n\");
print(\"---------------------------------------\\n\");
}
//----------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,\"~w~[HUN]War\",3000,4);
     SendClientMessage(playerid,COLOR_WHITE,\"Üdvözöllek a {88AA88}[HUN]{FFFFFF}War {88AA88}S{FFFFFF}zerveren!\");
    SendClientMessage(playerid,COLOR_WHITE,\"A szerver tulajdonos: John_Gates (HunGamer1000)\");
    SendClientMessage(playerid,COLOR_WHITE,\"Várható sok mappolás! Érezd jól magad!\");
     // class selection init vars
     gPlayerCitySelection[playerid] = -1;
gPlayerHasCitySelected[playerid] = 0;
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
//Kick(playerid);
/*
Removes vending machines
RemoveBuildingForPlayer(playerid, 1302, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1209, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 955, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1775, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1776, 0.0, 0.0, 0.0, 6000.0);
*/
/*
new ClientVersion[32];
GetPlayerVersion(playerid, ClientVersion, 32);
printf(\"Player %d reports client version: %s\", playerid, ClientVersion);*/
return 1;
}
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new randSpawn = 0;
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 30000);
if(CITY_LOS_SANTOS == gPlayerCitySelection[playerid]) {
    randSpawn = random(sizeof(gRandomSpawns_LosSantos));
    SetPlayerPos(playerid,
 gRandomSpawns_LosSantos[randSpawn][0],
 gRandomSpawns_LosSantos[randSpawn][1],
 gRandomSpawns_LosSantos[randSpawn][2]);
SetPlayerFacingAngle(playerid,gRandomSpawns_LosSantos[randSpawn][3]);
}
else if(CITY_SAN_FIERRO == gPlayerCitySelection[playerid]) {
    randSpawn = random(sizeof(gRandomSpawns_SanFierro));
    SetPlayerPos(playerid,
 gRandomSpawns_SanFierro[randSpawn][0],
 gRandomSpawns_SanFierro[randSpawn][1],
 gRandomSpawns_SanFierro[randSpawn][2]);
SetPlayerFacingAngle(playerid,gRandomSpawns_SanFierro[randSpawn][3]);
}
else if(CITY_LAS_VENTURAS == gPlayerCitySelection[playerid]) {
    randSpawn = random(sizeof(gRandomSpawns_LasVenturas));
    SetPlayerPos(playerid,
 gRandomSpawns_LasVenturas[randSpawn][0],
 gRandomSpawns_LasVenturas[randSpawn][1],
 gRandomSpawns_LasVenturas[randSpawn][2]);
SetPlayerFacingAngle(playerid,gRandomSpawns_LasVenturas[randSpawn][3]);
}
//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,1200);
   
    GivePlayerWeapon(playerid,WEAPON_COLT45,1000);
    GivePlayerWeapon(playerid,WEAPON_MP5,1000);
    GivePlayerWeapon(playerid,WEAPON_M4,1000);
//GivePlayerWeapon(playerid,WEAPON_MP5,100);
TogglePlayerClock(playerid, 0);
return 1;
}
//----------------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
    new playercash;
   
    // if they ever return to class selection make them city
// select again first
gPlayerHasCitySelected[playerid] = 0;
   
if(killerid == INVALID_PLAYER_ID) {
        ResetPlayerMoney(playerid);
} else {
playercash = GetPlayerMoney(playerid);
if(playercash > 0)  {
   GivePlayerMoney(killerid, playercash);
   ResetPlayerMoney(playerid);
}
}
      return 1;
}
//----------------------------------------------------------
ClassSel_SetupCharSelection(playerid)
{
      if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) {
SetPlayerInterior(playerid,11);
SetPlayerPos(playerid,508.7362,-87.4335,998.9609);
SetPlayerFacingAngle(playerid,0.0);
       SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609);
SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609);
}
else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) {
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2673.8381,1399.7424,918.3516);
SetPlayerFacingAngle(playerid,181.0);
       SetPlayerCameraPos(playerid,-2673.2776,1394.3859,918.3516);
SetPlayerCameraLookAt(playerid,-2673.8381,1399.7424,918.3516);
}
else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) {
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,349.0453,193.2271,1014.1797);
SetPlayerFacingAngle(playerid,286.25);
       SetPlayerCameraPos(playerid,352.9164,194.5702,1014.1875);
SetPlayerCameraLookAt(playerid,349.0453,193.2271,1014.1797);
}
}
//----------------------------------------------------------
// Used to init textdraws of city names
ClassSel_InitCityNameText(Text:txtInit)
{
     TextDrawUseBox(txtInit, 0);
TextDrawLetterSize(txtInit,1.25,3.0);
TextDrawFont(txtInit, 0);
TextDrawSetShadow(txtInit,0);
    TextDrawSetOutline(txtInit,1);
    TextDrawColor(txtInit,0xEEEEEEFF);
    TextDrawBackgroundColor(txtClassSelHelper,0x000000FF);
}
//----------------------------------------------------------
ClassSel_InitTextDraws()
{
    // Init our observer helper text display
txtLosSantos = TextDrawCreate(10.0, 380.0, \"Los Santos\");
ClassSel_InitCityNameText(txtLosSantos);
txtSanFierro = TextDrawCreate(10.0, 380.0, \"San Fierro\");
ClassSel_InitCityNameText(txtSanFierro);
txtLasVenturas = TextDrawCreate(10.0, 380.0, \"Las Venturas\");
ClassSel_InitCityNameText(txtLasVenturas);
    // Init our observer helper text display
txtClassSelHelper = TextDrawCreate(10.0, 415.0,
   \" Press ~b~~k~~GO_LEFT~ ~w~or ~b~~k~~GO_RIGHT~ ~w~to switch cities.~n~ Press ~r~~k~~PED_FIREWEAPON~ ~w~to select.\");
TextDrawUseBox(txtClassSelHelper, 1);
TextDrawBoxColor(txtClassSelHelper,0x222222BB);
TextDrawLetterSize(txtClassSelHelper,0.3,1.0);
TextDrawTextSize(txtClassSelHelper,400.0,40.0);
TextDrawFont(txtClassSelHelper, 2);
TextDrawSetShadow(txtClassSelHelper,0);
    TextDrawSetOutline(txtClassSelHelper,1);
    TextDrawBackgroundColor(txtClassSelHelper,0x000000FF);
    TextDrawColor(txtClassSelHelper,0xFFFFFFFF);
}
//----------------------------------------------------------
ClassSel_SetupSelectedCity(playerid)
{
if(gPlayerCitySelection[playerid] == -1) {
gPlayerCitySelection[playerid] = CITY_LOS_SANTOS;
}
if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) {
SetPlayerInterior(playerid,0);
         SetPlayerCameraPos(playerid,1630.6136,-2286.0298,110.0);
SetPlayerCameraLookAt(playerid,1887.6034,-1682.1442,47.6167);
TextDrawShowForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
}
else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) {
SetPlayerInterior(playerid,0);
         SetPlayerCameraPos(playerid,-1300.8754,68.0546,129.4823);
SetPlayerCameraLookAt(playerid,-1817.9412,769.3878,132.6589);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawShowForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
}
else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) {
SetPlayerInterior(playerid,0);
         SetPlayerCameraPos(playerid,1310.6155,1675.9182,110.7390);
SetPlayerCameraLookAt(playerid,2285.2944,1919.3756,68.2275);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawShowForPlayer(playerid,txtLasVenturas);
}
}
//----------------------------------------------------------
ClassSel_SwitchToNextCity(playerid)
{
    gPlayerCitySelection[playerid]++;
if(gPlayerCitySelection[playerid] > CITY_LAS_VENTURAS) {
    gPlayerCitySelection[playerid] = CITY_LOS_SANTOS;
}
PlayerPlaySound(playerid,1052,0.0,0.0,0.0);
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
ClassSel_SetupSelectedCity(playerid);
}
//----------------------------------------------------------
ClassSel_SwitchToPreviousCity(playerid)
{
    gPlayerCitySelection[playerid]--;
if(gPlayerCitySelection[playerid] < CITY_LOS_SANTOS) {
    gPlayerCitySelection[playerid] = CITY_LAS_VENTURAS;
}
PlayerPlaySound(playerid,1053,0.0,0.0,0.0);
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
ClassSel_SetupSelectedCity(playerid);
}
//----------------------------------------------------------
ClassSel_HandleCitySelection(playerid)
{
new Keys,ud,lr;
    GetPlayerKeys(playerid,Keys,ud,lr);
   
    if(gPlayerCitySelection[playerid] == -1) {
ClassSel_SwitchToNextCity(playerid);
return;
}
// only allow new selection every ~500 ms
if( (GetTickCount() - gPlayerLastCitySelectionTick[playerid]) < 500 ) return;
if(Keys & KEY_FIRE) {
    gPlayerHasCitySelected[playerid] = 1;
    TextDrawHideForPlayer(playerid,txtClassSelHelper);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
    TogglePlayerSpectating(playerid,0);
    return;
}
if(lr > 0) {
   ClassSel_SwitchToNextCity(playerid);
}
else if(lr < 0) {
   ClassSel_SwitchToPreviousCity(playerid);
}
}
//----------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
if(gPlayerHasCitySelected[playerid]) {
ClassSel_SetupCharSelection(playerid);
return 1;
} else {
if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
   TogglePlayerSpectating(playerid,1);
          TextDrawShowForPlayer(playerid, txtClassSelHelper);
          gPlayerCitySelection[playerid] = -1;
}
     }
   
return 0;
}
//----------------------------------------------------------
public OnGameModeInit()
{
SetGameModeText(\"Grand Larceny\");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(2);
SetWorldTime(11);
UsePlayerPedAnims();
//ManualVehicleEngineAndLights();
//LimitGlobalChatRadius(300.0);
ClassSel_InitTextDraws();
// Player Class
AddPlayerClass(281,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(282,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(283,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(284,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(285,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(286,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(287,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(288,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(265,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(266,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(267,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(268,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(270,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(1,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(2,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(3,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(4,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(5,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(6,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(8,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(42,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(65,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
//AddPlayerClass(74,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(86,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(119,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(149,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(208,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(273,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(47,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(48,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(49,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(50,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(51,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(52,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(53,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(54,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(55,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(56,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(57,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(58,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
      AddPlayerClass(68,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(69,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(70,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(71,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(72,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(73,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(75,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(76,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(78,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(79,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(80,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(81,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(82,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(83,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(84,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(85,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(87,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(88,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(89,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(91,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(92,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(93,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(95,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(96,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(97,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(98,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(99,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
// SPECIAL
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/trains.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/pilots.txt\");
      // LAS VENTURAS
     total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_law.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_airport.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_gen.txt\");
   
    // SAN FIERRO
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_law.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_airport.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_gen.txt\");
   
    // LOS SANTOS
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_law.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_airport.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_gen_inner.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_gen_outer.txt\");
   
    // OTHER AREAS
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/whetstone.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/bone.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/flint.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/tierra.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/red_county.txt\");
    printf(\"Total vehicles from files: %d\",total_vehicles_from_files);
   
    CreateObject(983, 1539.6, -1614.6, 16.6, 0, 0, 0);
    CreateObject(983, 1539.6, -1608.2, 16.6, 0, 0, 0);
    CreateObject(983, 1539.6, -1605.6, 16.6, 0, 0, 0);
    CreateObject(983, 1542.8, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1549.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1555.4, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1561.7, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1568.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1574.5, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1580.9, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1587.3, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1593.7, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1600.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1604.9, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1542.8, -1617.8, 16.6, 0, 0, 270);
    CreateObject(983, 1546.4, -1617.8, 16.6, 0, 0, 270);
    CreateObject(983, 1608.1, -1605.6, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1612, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1618.4, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1624.8, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1631.2, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1634.9, 16.6, 0, 0, 0);
    CreateObject(983, 1604.9, -1638.1, 16.6, 0, 0, 270);
    CreateObject(983, 1545.7, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1552.1, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1558.5, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1564.9, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1571.3, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1574.7, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1545.7, -1650.8, 28, 0, 0, 270);
    CreateObject(983, 1550.4, -1650.8, 28, 0, 0, 270);
    CreateObject(983, 1550.3, -1700.4, 28.1, 0, 0, 270);
    CreateObject(983, 1545.7, -1700.4, 28, 0, 0, 270);
    CreateObject(983, 1545.7, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1552.1, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1558.5, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1564.9, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1571.3, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1574.7, -1714.6, 28.1, 0, 0, 270);
    CreateObject(3029, 1565.7, -1667.3, 27.4, 0, 0, 90.25);
    CreateObject(983, 1577.9, -1640.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1646.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1653.1, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1659.5, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1665.9, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1672.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1678.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1685.1, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1691.5, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1697.9, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1704.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1710.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1711.4, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1711.4, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1705, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1703.6, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1697.2, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1690.8, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1684.4, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1681.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1554.2, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.9, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.6, -1678.4, 27.9, 0, 0, 0);
    CreateObject(983, 1553.5, -1669.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1554.5, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1678.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.6, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.6, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.2, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.9, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.6, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1692.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1545.7, -1700.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1542.7, -1711.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1560.1, -1714.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.8, -1704.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1680.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1664.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1649.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.8, -1637.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1561.7, -1637.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1542.6, -1637.3, 27.9, 0, 0, 0);
    CreateObject(983, 1553.5, -1663.2, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1658.1, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1654, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1640.3, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1646.7, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1647.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1542.5, -1650.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1658.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1667.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1545.6, -1672.8, 13.1, 0, 0, 0);
    CreateObject(3666, 1545.6, -1678.6, 13.1, 0, 0, 0);
    CreateObject(3934, 1564, -1703.3, 27.4, 0, 0, 0);
    CreateObject(3666, 1568, -1707, 27.9, 0, 0, 0);
    CreateObject(3666, 1559.9, -1707, 27.9, 0, 0, 0);
    CreateObject(3666, 1559.9, -1699.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1568.1, -1699.7, 27.9, 0, 0, 0);
    CreateObject(3934, 1554.5, -1643.5, 27.4, 0, 0, 0);
    CreateObject(3666, 1558.6, -1639.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1558.7, -1647.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1550.6, -1647.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1550.3, -1639.9, 27.9, 0, 0, 0);
    CreateObject(3934, 1571.4, -1655.3, 27.4, 0, 0, 270.5);
    CreateObject(3666, 1574.9, -1651.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1567.6, -1651.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1567.7, -1659.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1575, -1659.1, 27.9, 0, 0, 0);
return 1;
}
//----------------------------------------------------------
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(IsPlayerNPC(playerid)) return 1;
// changing cities by inputs
if( !gPlayerHasCitySelected[playerid] &&
    GetPlayerState(playerid) == PLAYER_STATE_SPECTATING ) {
    ClassSel_HandleCitySelection(playerid);
    return 1;
}
 
/* No jetpacks allowed
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
    Kick(playerid);
    return 0;
}*/
/* For testing animations
    new msg[128+1];
new animlib[32+1];
new animname[32+1];
thisanimid = GetPlayerAnimationIndex(playerid);
if(lastanimid != thisanimid)
{
GetAnimationName(thisanimid,animlib,32,animname,32);
format(msg, 128, \"anim(%d,%d): %s %s\", lastanimid, thisanimid, animlib, animname);
lastanimid = thisanimid;
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}*/
return 1;
}
//----------------------------------------------------------

 
Fejes, lábas rendszer(belerakni):
 
#define BODY_PART_LEFT_LEG 7
#define BODY_PART_RIGHT_LEG 8
#define BODY_PART_HEAD 9

 

public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
if(bodypart ==  BODY_PART_LEFT_LEG)
{
  if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
  {
   SendClientMessage(playerid, COLOR_LIGHTRED, \"Bal Lábon lõtted, ezért nem tud mozogni!\");
   TogglePlayerControllable(damagedid, false);
   SetPlayerDrunkLevel(damagedid, 50000);
   ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
   SetPlayerArmedWeapon(damagedid, 0);
   SendClientMessage(damagedid, COLOR_LIGHTRED, \"Bal Lábon lõttek, ezért nem bírsz mozogni!\");
  }
}
else if(bodypart == BODY_PART_RIGHT_LEG)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
  SendClientMessage(playerid, COLOR_LIGHTRED, \"Jobb lábon lõtted, ezért nem tud mozogni!\");
  TogglePlayerControllable(damagedid, false);
  SetPlayerDrunkLevel(damagedid, 50000);
  ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
  SetPlayerArmedWeapon(damagedid, 0);
  SendClientMessage(damagedid, COLOR_LIGHTRED, \"Jobb Lábon lõttek, ezért nem bírsz mozogni!\");
}
}
else if(bodypart == BODY_PART_HEAD)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
  SendClientMessage(playerid, COLOR_LIGHTRED, \"Fejenlõtted, ezért súlyosan megsérült és kórházba került!\");
  SendClientMessage(damagedid, COLOR_LIGHTRED, \"Fejenlõttek, ezért súlyosan megsérültél!\");
  SetPlayerHealth(damagedid,0);
}
}
return 1;
}

 
Magadon segítés(berakni):
 
if (strcmp(\"/segit\", cmdtext, true, 10) == 0)
{
  TogglePlayerControllable(playerid, true);
                SetPlayerDrunkLevel(playerid, 0);
                ClearAnimations(playerid);
  SendClientMessage(playerid, 0x33CCFFAA, \"Segítettél magadon!\");
  return 1;
}
« Utoljára szerkesztve: 2014. május 13. - 17:17:16 írta John_Gates »

Pawno gond, segítség!
« Válasz #1 Dátum: 2014. május 12. - 16:49:38 »
0 Show voters
Szia, a warningokat így szedheted ki:
A módod legelejére tedd be ezt:
 
#pragma unused gArmySpawns, gMedicalSpawns, gPoliceSpawns, lastanimid, thisanimid

 

Dupla hozzászólás automatikusan összefûzve. ( 2014. május 12. - 16:54:48 )

És itt az egész a fejes lábas rendszerrel:
 
#pragma unused gArmySpawns, gMedicalSpawns, gPoliceSpawns, lastanimid, thisanimid
//----------------------------------------------------------
//
//  GRAND LARCENY  1.0
//  A freeroam gamemode for SA-MP 0.3
//
//----------------------------------------------------------
#include <a_samp>
#include <core>
#include <float>
#include \"../include/gl_common.inc\"
#include \"../include/gl_spawns.inc\"
#pragma tabsize 0
//----------------------------------------------------------
#define COLOR_WHITE   0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777
#define CITY_LOS_SANTOS  0
#define CITY_SAN_FIERRO  1
#define CITY_LAS_VENTURAS  2
#define BODY_PART_LEFT_LEG 7
#define BODY_PART_RIGHT_LEG 8
#define BODY_PART_HEAD 9
#define COLOR_LIGHTRED 0xAA3333FF
new total_vehicles_from_files=0;
// Class selection globals
new gPlayerCitySelection[MAX_PLAYERS];
new gPlayerHasCitySelected[MAX_PLAYERS];
new gPlayerLastCitySelectionTick[MAX_PLAYERS];
new Text:txtClassSelHelper;
new Text:txtLosSantos;
new Text:txtSanFierro;
new Text:txtLasVenturas;
new thisanimid=0;
new lastanimid=0;
//----------------------------------------------------------
main()
{
print(\"\\n---------------------------------------\");
print(\"[HUN]War by HunGamer1000\\n\");
print(\"---------------------------------------\\n\");
}
//----------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,\"~w~[HUN]War\",3000,4);
   SendClientMessage(playerid,COLOR_WHITE,\"Üdvözöllek a {88AA88}[HUN]{FFFFFF}War {88AA88}S{FFFFFF}zerveren!\");
    SendClientMessage(playerid,COLOR_WHITE,\"A szerver tulajdonos: John_Gates (HunGamer1000)\");
    SendClientMessage(playerid,COLOR_WHITE,\"Várható sok mappolás! Érezd jól magad!\");
   // class selection init vars
   gPlayerCitySelection[playerid] = -1;
gPlayerHasCitySelected[playerid] = 0;
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
//Kick(playerid);
/*
Removes vending machines
RemoveBuildingForPlayer(playerid, 1302, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1209, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 955, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1775, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1776, 0.0, 0.0, 0.0, 6000.0);
*/
/*
new ClientVersion[32];
GetPlayerVersion(playerid, ClientVersion, 32);
printf(\"Player %d reports client version: %s\", playerid, ClientVersion);*/
  return 1;
}
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new randSpawn = 0;
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
  ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 30000);
if(CITY_LOS_SANTOS == gPlayerCitySelection[playerid]) {
      randSpawn = random(sizeof(gRandomSpawns_LosSantos));
      SetPlayerPos(playerid,
   gRandomSpawns_LosSantos[randSpawn][0],
   gRandomSpawns_LosSantos[randSpawn][1],
   gRandomSpawns_LosSantos[randSpawn][2]);
  SetPlayerFacingAngle(playerid,gRandomSpawns_LosSantos[randSpawn][3]);
}
else if(CITY_SAN_FIERRO == gPlayerCitySelection[playerid]) {
      randSpawn = random(sizeof(gRandomSpawns_SanFierro));
      SetPlayerPos(playerid,
   gRandomSpawns_SanFierro[randSpawn][0],
   gRandomSpawns_SanFierro[randSpawn][1],
   gRandomSpawns_SanFierro[randSpawn][2]);
  SetPlayerFacingAngle(playerid,gRandomSpawns_SanFierro[randSpawn][3]);
}
else if(CITY_LAS_VENTURAS == gPlayerCitySelection[playerid]) {
      randSpawn = random(sizeof(gRandomSpawns_LasVenturas));
      SetPlayerPos(playerid,
   gRandomSpawns_LasVenturas[randSpawn][0],
   gRandomSpawns_LasVenturas[randSpawn][1],
   gRandomSpawns_LasVenturas[randSpawn][2]);
  SetPlayerFacingAngle(playerid,gRandomSpawns_LasVenturas[randSpawn][3]);
}
//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,1200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,1200);
    GivePlayerWeapon(playerid,WEAPON_COLT45,1000);
    GivePlayerWeapon(playerid,WEAPON_MP5,1000);
    GivePlayerWeapon(playerid,WEAPON_M4,1000);
//GivePlayerWeapon(playerid,WEAPON_MP5,100);
TogglePlayerClock(playerid, 0);
return 1;
}
//----------------------------------------------------------
//TALÁLAT KEZDETE
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
if(bodypart ==  BODY_PART_LEFT_LEG)
{
  if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
  {
   SendClientMessage(playerid, COLOR_LIGHTRED, \"Bal Lábon lõtted, ezért nem tud mozogni!\");
   TogglePlayerControllable(damagedid, false);
   SetPlayerDrunkLevel(damagedid, 50000);
   ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
   SetPlayerArmedWeapon(damagedid, 0);
   SendClientMessage(damagedid, COLOR_LIGHTRED, \"Bal Lábon lõttek, ezért nem bírsz mozogni!\");
  }
}
else if(bodypart == BODY_PART_RIGHT_LEG)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
  SendClientMessage(playerid, COLOR_LIGHTRED, \"Jobb lábon lõtted, ezért nem tud mozogni!\");
  TogglePlayerControllable(damagedid, false);
  SetPlayerDrunkLevel(damagedid, 50000);
  ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
  SetPlayerArmedWeapon(damagedid, 0);
  SendClientMessage(damagedid, COLOR_LIGHTRED, \"Jobb Lábon lõttek, ezért nem bírsz mozogni!\");
}
}
else if(bodypart == BODY_PART_HEAD)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
  SendClientMessage(playerid, COLOR_LIGHTRED, \"Fejenlõtted, ezért súlyosan megsérült és kórházba került!\");
  SendClientMessage(damagedid, COLOR_LIGHTRED, \"Fejenlõttek, ezért súlyosan megsérültél!\");
  SetPlayerHealth(damagedid,0);
}
}
return 1;
}
//TALÁLAT VÉGE
public OnPlayerDeath(playerid, killerid, reason)
{
    new playercash;
    // if they ever return to class selection make them city
// select again first
gPlayerHasCitySelected[playerid] = 0;
if(killerid == INVALID_PLAYER_ID) {
        ResetPlayerMoney(playerid);
} else {
  playercash = GetPlayerMoney(playerid);
  if(playercash > 0)  {
   GivePlayerMoney(killerid, playercash);
   ResetPlayerMoney(playerid);
  }
}
    return 1;
}
//----------------------------------------------------------
ClassSel_SetupCharSelection(playerid)
{
    if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) {
  SetPlayerInterior(playerid,11);
  SetPlayerPos(playerid,508.7362,-87.4335,998.9609);
  SetPlayerFacingAngle(playerid,0.0);
     SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609);
  SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609);
}
else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) {
  SetPlayerInterior(playerid,3);
  SetPlayerPos(playerid,-2673.8381,1399.7424,918.3516);
  SetPlayerFacingAngle(playerid,181.0);
     SetPlayerCameraPos(playerid,-2673.2776,1394.3859,918.3516);
  SetPlayerCameraLookAt(playerid,-2673.8381,1399.7424,918.3516);
}
else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) {
  SetPlayerInterior(playerid,3);
  SetPlayerPos(playerid,349.0453,193.2271,1014.1797);
  SetPlayerFacingAngle(playerid,286.25);
     SetPlayerCameraPos(playerid,352.9164,194.5702,1014.1875);
  SetPlayerCameraLookAt(playerid,349.0453,193.2271,1014.1797);
}
}
//----------------------------------------------------------
// Used to init textdraws of city names
ClassSel_InitCityNameText(Text:txtInit)
{
   TextDrawUseBox(txtInit, 0);
TextDrawLetterSize(txtInit,1.25,3.0);
TextDrawFont(txtInit, 0);
TextDrawSetShadow(txtInit,0);
    TextDrawSetOutline(txtInit,1);
    TextDrawColor(txtInit,0xEEEEEEFF);
    TextDrawBackgroundColor(txtClassSelHelper,0x000000FF);
}
//----------------------------------------------------------
ClassSel_InitTextDraws()
{
    // Init our observer helper text display
txtLosSantos = TextDrawCreate(10.0, 380.0, \"Los Santos\");
ClassSel_InitCityNameText(txtLosSantos);
txtSanFierro = TextDrawCreate(10.0, 380.0, \"San Fierro\");
ClassSel_InitCityNameText(txtSanFierro);
txtLasVenturas = TextDrawCreate(10.0, 380.0, \"Las Venturas\");
ClassSel_InitCityNameText(txtLasVenturas);
    // Init our observer helper text display
txtClassSelHelper = TextDrawCreate(10.0, 415.0,
    \" Press ~b~~k~~GO_LEFT~ ~w~or ~b~~k~~GO_RIGHT~ ~w~to switch cities.~n~ Press ~r~~k~~PED_FIREWEAPON~ ~w~to select.\");
TextDrawUseBox(txtClassSelHelper, 1);
TextDrawBoxColor(txtClassSelHelper,0x222222BB);
TextDrawLetterSize(txtClassSelHelper,0.3,1.0);
TextDrawTextSize(txtClassSelHelper,400.0,40.0);
TextDrawFont(txtClassSelHelper, 2);
TextDrawSetShadow(txtClassSelHelper,0);
    TextDrawSetOutline(txtClassSelHelper,1);
    TextDrawBackgroundColor(txtClassSelHelper,0x000000FF);
    TextDrawColor(txtClassSelHelper,0xFFFFFFFF);
}
//----------------------------------------------------------
ClassSel_SetupSelectedCity(playerid)
{
if(gPlayerCitySelection[playerid] == -1) {
  gPlayerCitySelection[playerid] = CITY_LOS_SANTOS;
}
if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) {
  SetPlayerInterior(playerid,0);
     SetPlayerCameraPos(playerid,1630.6136,-2286.0298,110.0);
  SetPlayerCameraLookAt(playerid,1887.6034,-1682.1442,47.6167);
  TextDrawShowForPlayer(playerid,txtLosSantos);
  TextDrawHideForPlayer(playerid,txtSanFierro);
  TextDrawHideForPlayer(playerid,txtLasVenturas);
}
else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) {
  SetPlayerInterior(playerid,0);
     SetPlayerCameraPos(playerid,-1300.8754,68.0546,129.4823);
  SetPlayerCameraLookAt(playerid,-1817.9412,769.3878,132.6589);
  TextDrawHideForPlayer(playerid,txtLosSantos);
  TextDrawShowForPlayer(playerid,txtSanFierro);
  TextDrawHideForPlayer(playerid,txtLasVenturas);
}
else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) {
  SetPlayerInterior(playerid,0);
     SetPlayerCameraPos(playerid,1310.6155,1675.9182,110.7390);
  SetPlayerCameraLookAt(playerid,2285.2944,1919.3756,68.2275);
  TextDrawHideForPlayer(playerid,txtLosSantos);
  TextDrawHideForPlayer(playerid,txtSanFierro);
  TextDrawShowForPlayer(playerid,txtLasVenturas);
}
}
//----------------------------------------------------------
ClassSel_SwitchToNextCity(playerid)
{
    gPlayerCitySelection[playerid]++;
if(gPlayerCitySelection[playerid] > CITY_LAS_VENTURAS) {
     gPlayerCitySelection[playerid] = CITY_LOS_SANTOS;
}
PlayerPlaySound(playerid,1052,0.0,0.0,0.0);
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
ClassSel_SetupSelectedCity(playerid);
}
//----------------------------------------------------------
ClassSel_SwitchToPreviousCity(playerid)
{
    gPlayerCitySelection[playerid]--;
if(gPlayerCitySelection[playerid] < CITY_LOS_SANTOS) {
     gPlayerCitySelection[playerid] = CITY_LAS_VENTURAS;
}
PlayerPlaySound(playerid,1053,0.0,0.0,0.0);
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
ClassSel_SetupSelectedCity(playerid);
}
//----------------------------------------------------------
ClassSel_HandleCitySelection(playerid)
{
new Keys,ud,lr;
    GetPlayerKeys(playerid,Keys,ud,lr);
    if(gPlayerCitySelection[playerid] == -1) {
  ClassSel_SwitchToNextCity(playerid);
  return;
}
// only allow new selection every ~500 ms
if( (GetTickCount() - gPlayerLastCitySelectionTick[playerid]) < 500 ) return;
if(Keys & KEY_FIRE) {
     gPlayerHasCitySelected[playerid] = 1;
     TextDrawHideForPlayer(playerid,txtClassSelHelper);
  TextDrawHideForPlayer(playerid,txtLosSantos);
  TextDrawHideForPlayer(playerid,txtSanFierro);
  TextDrawHideForPlayer(playerid,txtLasVenturas);
     TogglePlayerSpectating(playerid,0);
     return;
}
if(lr > 0) {
    ClassSel_SwitchToNextCity(playerid);
}
else if(lr < 0) {
    ClassSel_SwitchToPreviousCity(playerid);
}
}
//----------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/segit\", cmdtext, true, 10) == 0)
{
TogglePlayerControllable(playerid, true);
SetPlayerDrunkLevel(playerid, 0);
ClearAnimations(playerid);
SendClientMessage(playerid, 0x33CCFFAA, \"Segítettél magadon!\");
return 1;
}
return 0;
}
//----------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
if(gPlayerHasCitySelected[playerid]) {
  ClassSel_SetupCharSelection(playerid);
  return 1;
} else {
  if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
   TogglePlayerSpectating(playerid,1);
      TextDrawShowForPlayer(playerid, txtClassSelHelper);
      gPlayerCitySelection[playerid] = -1;
  }
   }
return 0;
}
//----------------------------------------------------------
public OnGameModeInit()
{
SetGameModeText(\"Grand Larceny\");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(2);
SetWorldTime(11);
UsePlayerPedAnims();
//ManualVehicleEngineAndLights();
//LimitGlobalChatRadius(300.0);
ClassSel_InitTextDraws();
// Player Class
AddPlayerClass(281,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(282,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(283,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(284,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(285,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(286,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(287,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(288,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(265,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(266,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(267,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(268,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(270,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(1,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(2,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(3,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(4,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(5,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(6,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(8,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(42,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(65,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
//AddPlayerClass(74,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(86,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(119,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  AddPlayerClass(149,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(208,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(273,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(47,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(48,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(49,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(50,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(51,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(52,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(53,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(54,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(55,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(56,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(57,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(58,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(68,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(69,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(70,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(71,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(72,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(73,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(75,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(76,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(78,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(79,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(80,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(81,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(82,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(83,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(84,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(85,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(87,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(88,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(89,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(91,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(92,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(93,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(95,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(96,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(97,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(98,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(99,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
// SPECIAL
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/trains.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/pilots.txt\");
    // LAS VENTURAS
     total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_law.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_airport.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_gen.txt\");
    // SAN FIERRO
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_law.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_airport.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_gen.txt\");
    // LOS SANTOS
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_law.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_airport.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_gen_inner.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_gen_outer.txt\");
    // OTHER AREAS
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/whetstone.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/bone.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/flint.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/tierra.txt\");
    total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/red_county.txt\");
    printf(\"Total vehicles from files: %d\",total_vehicles_from_files);
    CreateObject(983, 1539.6, -1614.6, 16.6, 0, 0, 0);
    CreateObject(983, 1539.6, -1608.2, 16.6, 0, 0, 0);
    CreateObject(983, 1539.6, -1605.6, 16.6, 0, 0, 0);
    CreateObject(983, 1542.8, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1549.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1555.4, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1561.7, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1568.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1574.5, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1580.9, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1587.3, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1593.7, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1600.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1604.9, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1542.8, -1617.8, 16.6, 0, 0, 270);
    CreateObject(983, 1546.4, -1617.8, 16.6, 0, 0, 270);
    CreateObject(983, 1608.1, -1605.6, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1612, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1618.4, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1624.8, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1631.2, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1634.9, 16.6, 0, 0, 0);
    CreateObject(983, 1604.9, -1638.1, 16.6, 0, 0, 270);
    CreateObject(983, 1545.7, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1552.1, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1558.5, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1564.9, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1571.3, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1574.7, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1545.7, -1650.8, 28, 0, 0, 270);
    CreateObject(983, 1550.4, -1650.8, 28, 0, 0, 270);
    CreateObject(983, 1550.3, -1700.4, 28.1, 0, 0, 270);
    CreateObject(983, 1545.7, -1700.4, 28, 0, 0, 270);
    CreateObject(983, 1545.7, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1552.1, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1558.5, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1564.9, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1571.3, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1574.7, -1714.6, 28.1, 0, 0, 270);
    CreateObject(3029, 1565.7, -1667.3, 27.4, 0, 0, 90.25);
    CreateObject(983, 1577.9, -1640.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1646.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1653.1, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1659.5, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1665.9, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1672.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1678.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1685.1, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1691.5, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1697.9, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1704.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1710.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1711.4, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1711.4, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1705, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1703.6, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1697.2, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1690.8, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1684.4, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1681.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1554.2, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.9, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.6, -1678.4, 27.9, 0, 0, 0);
    CreateObject(983, 1553.5, -1669.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1554.5, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1678.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.6, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.6, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.2, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.9, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.6, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1692.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1545.7, -1700.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1542.7, -1711.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1560.1, -1714.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.8, -1704.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1680.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1664.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1649.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.8, -1637.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1561.7, -1637.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1542.6, -1637.3, 27.9, 0, 0, 0);
    CreateObject(983, 1553.5, -1663.2, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1658.1, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1654, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1640.3, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1646.7, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1647.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1542.5, -1650.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1658.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1667.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1545.6, -1672.8, 13.1, 0, 0, 0);
    CreateObject(3666, 1545.6, -1678.6, 13.1, 0, 0, 0);
    CreateObject(3934, 1564, -1703.3, 27.4, 0, 0, 0);
    CreateObject(3666, 1568, -1707, 27.9, 0, 0, 0);
    CreateObject(3666, 1559.9, -1707, 27.9, 0, 0, 0);
    CreateObject(3666, 1559.9, -1699.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1568.1, -1699.7, 27.9, 0, 0, 0);
    CreateObject(3934, 1554.5, -1643.5, 27.4, 0, 0, 0);
    CreateObject(3666, 1558.6, -1639.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1558.7, -1647.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1550.6, -1647.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1550.3, -1639.9, 27.9, 0, 0, 0);
    CreateObject(3934, 1571.4, -1655.3, 27.4, 0, 0, 270.5);
    CreateObject(3666, 1574.9, -1651.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1567.6, -1651.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1567.7, -1659.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1575, -1659.1, 27.9, 0, 0, 0);
return 1;
}
//----------------------------------------------------------
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(IsPlayerNPC(playerid)) return 1;
// changing cities by inputs
if( !gPlayerHasCitySelected[playerid] &&
     GetPlayerState(playerid) == PLAYER_STATE_SPECTATING ) {
     ClassSel_HandleCitySelection(playerid);
     return 1;
}
 
/* No jetpacks allowed
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
     Kick(playerid);
     return 0;
}*/
/* For testing animations
    new msg[128+1];
new animlib[32+1];
new animname[32+1];
thisanimid = GetPlayerAnimationIndex(playerid);
if(lastanimid != thisanimid)
{
  GetAnimationName(thisanimid,animlib,32,animname,32);
  format(msg, 128, \"anim(%d,%d): %s %s\", lastanimid, thisanimid, animlib, animname);
  lastanimid = thisanimid;
  SendClientMessage(playerid, 0xFFFFFFFF, msg);
}*/
return 1;
}
//----------------------------------------------------------
« Utoljára szerkesztve: 2014. május 12. - 16:59:57 írta DeanGriffon »

Pawno gond, segítség!
« Válasz #2 Dátum: 2014. május 12. - 17:23:31 »
0 Show voters
Köszönöm szépen, király vagy! :)

Dupla hozzászólás automatikusan összefûzve. ( 2014. május 12. - 17:30:12 )

Egy error maradt:
 
../include/gl_common.inc(7) : error 001: expected token: \";\", but found \"stock\"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
1 Error.
« Utoljára szerkesztve: 2014. május 12. - 17:30:12 írta John_Gates »

Pawno gond, segítség!
« Válasz #3 Dátum: 2014. május 12. - 18:03:21 »
0 Show voters
Nekem nincs error  :confused:

Dupla hozzászólás automatikusan összefûzve. ( 2014. május 12. - 18:06:04 )

Most nézem, miért a gl_common.inc-t fordítod?
« Utoljára szerkesztve: 2014. május 12. - 18:06:04 írta DeanGriffon »

Pawno gond, segítség!
« Válasz #4 Dátum: 2014. május 12. - 18:41:42 »
0 Show voters
Hogy mi? :D Bocsi de nem értek nagyon ehhez :D

Pawno gond, segítség!
« Válasz #5 Dátum: 2014. május 12. - 18:45:23 »
0 Show voters
Egy .pwn fájl-t kellene fordítanod.

Pawno gond, segítség!
« Válasz #6 Dátum: 2014. május 12. - 18:47:36 »
0 Show voters
Öhm, értem. És azt hogy? Hogy értve fordítani?

Pawno gond, segítség!
« Válasz #7 Dátum: 2014. május 12. - 18:49:21 »
0 Show voters
Megnyitod a pawnot, rákattintasz a baloldali ikonra, arra, hogy New, a benne lévõ kódot kicseréled arra, amit küldtem, és azt arra a kék nyílra kattintva fordítod. Majd a server.cfg-ben  gamemode0 \"ami ott van\" 1 kicseréled gamemode0 amit nevet megadtál neki 1.

Pawno gond, segítség!
« Válasz #8 Dátum: 2014. május 12. - 18:52:43 »
0 Show voters
De nemtudom le compilerezni mert error nem értem még én ezt.

Pawno gond, segítség!
« Válasz #9 Dátum: 2014. május 12. - 19:09:09 »
0 Show voters
Na akkor elmagyarázom képekben:
Elsõ lépés, megnyitod a pawnot:
[hs width=300 height=300]http://kepfeltoltes.hu/140512/Tut1_www.kepfeltoltes.hu_.png[/hs]
Megnyitsz egy újat:
[hs width=300 height=300]http://kepfeltoltes.hu/140512/Tut2_www.kepfeltoltes.hu_.png[/hs]
Ezt hozza be:
[hs width=300 height=300]http://kepfeltoltes.hu/140512/Tut3_www.kepfeltoltes.hu_.png[/hs]
Mindent kitörölsz, és beteszed a kódot amit adtam:
[hs width=300 height=300]http://kepfeltoltes.hu/140512/Tut4_www.kepfeltoltes.hu_.png[/hs]
Rákattintasz a kék nyílra:
[hs width=300 height=300]http://kepfeltoltes.hu/140512/Tut5_www.kepfeltoltes.hu_.png[/hs]
Adsz neki egy nevet, például Mod.pwn
[hs width=300 height=300]http://kepfeltoltes.hu/140512/Tut6_www.kepfeltoltes.hu_.png[/hs]
Kimész, megnyitod a server.cfg-t:
[hs width=300 height=300]http://kepfeltoltes.hu/140512/Tut7_www.kepfeltoltes.hu_.png[/hs]
Ott kicseréled erre:
[hs width=300 height=300]http://kepfeltoltes.hu/140512/Tut8_www.kepfeltoltes.hu_.png[/hs]
Elmented, és meg is vagy. :)

Pawno gond, segítség!
« Válasz #10 Dátum: 2014. május 12. - 19:16:40 »
0 Show voters
Nincs meg az AMX file ezért bezáródik a szerver..
De lecompilerezni nemtudom mert error

Pawno gond, segítség!
« Válasz #11 Dátum: 2014. május 12. - 19:19:31 »
0 Show voters
Most milyen errort ír?

Pawno gond, segítség!
« Válasz #12 Dátum: 2014. május 12. - 19:20:26 »
0 Show voters
Ugyan azt.

Pawno gond, segítség!
« Válasz #13 Dátum: 2014. május 12. - 19:25:09 »
0 Show voters
Az érdekes, mert elõbb egy inc-t fordítottál, és most is ugyanazt adja ki?  :hmmm:

Pawno gond, segítség!
« Válasz #14 Dátum: 2014. május 12. - 19:28:46 »
0 Show voters
Esetleg belerakhatod a fejes, lábas rendszert egy hibátlan mod omba is, amibe írtam is valamit és hibátlan.
Ebbe kéne belerakni:
 
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define FEHER -1
main()
{
print(\"\\n----------------------------------\");
print(\" [HUN]War szerver by HunGamer1000\");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
SetGameModeText(\"[HUN]War\");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
CreateObject(983, 1539.6, -1614.6, 16.6, 0, 0, 0);
    CreateObject(983, 1539.6, -1608.2, 16.6, 0, 0, 0);
    CreateObject(983, 1539.6, -1605.6, 16.6, 0, 0, 0);
    CreateObject(983, 1542.8, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1549.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1555.4, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1561.7, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1568.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1574.5, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1580.9, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1587.3, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1593.7, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1600.1, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1604.9, -1602.4, 16.6, 0, 0, 270);
    CreateObject(983, 1542.8, -1617.8, 16.6, 0, 0, 270);
    CreateObject(983, 1546.4, -1617.8, 16.6, 0, 0, 270);
    CreateObject(983, 1608.1, -1605.6, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1612, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1618.4, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1624.8, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1631.2, 16.6, 0, 0, 0);
    CreateObject(983, 1608.1, -1634.9, 16.6, 0, 0, 0);
    CreateObject(983, 1604.9, -1638.1, 16.6, 0, 0, 270);
    CreateObject(983, 1545.7, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1552.1, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1558.5, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1564.9, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1571.3, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1574.7, -1637.1, 28.1, 0, 0, 270);
    CreateObject(983, 1545.7, -1650.8, 28, 0, 0, 270);
    CreateObject(983, 1550.4, -1650.8, 28, 0, 0, 270);
    CreateObject(983, 1550.3, -1700.4, 28.1, 0, 0, 270);
    CreateObject(983, 1545.7, -1700.4, 28, 0, 0, 270);
    CreateObject(983, 1545.7, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1552.1, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1558.5, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1564.9, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1571.3, -1714.6, 28.1, 0, 0, 270);
    CreateObject(983, 1574.7, -1714.6, 28.1, 0, 0, 270);
    CreateObject(3029, 1565.7, -1667.3, 27.4, 0, 0, 90.25);
    CreateObject(983, 1577.9, -1640.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1646.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1653.1, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1659.5, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1665.9, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1672.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1678.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1685.1, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1691.5, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1697.9, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1704.3, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1710.7, 28.1, 0, 0, 0);
    CreateObject(983, 1577.9, -1711.4, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1711.4, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1705, 28.1, 0, 0, 0);
    CreateObject(983, 1542.6, -1703.6, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1697.2, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1690.8, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1684.4, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1681.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1554.2, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.9, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.6, -1678.4, 27.9, 0, 0, 0);
    CreateObject(983, 1553.5, -1669.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1554.5, -1678.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1678.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1677.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.6, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1676, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1675.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1674.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.6, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1673, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.5, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1554.2, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.9, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.6, -1672.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1692.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1545.7, -1700.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1542.7, -1711.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1560.1, -1714.5, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.8, -1704.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1680.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1664.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.9, -1649.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1577.8, -1637.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1561.7, -1637.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1542.6, -1637.3, 27.9, 0, 0, 0);
    CreateObject(983, 1553.5, -1663.2, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1658.1, 28.1, 0, 0, 0);
    CreateObject(983, 1553.5, -1654, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1640.3, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1646.7, 28.1, 0, 0, 0);
    CreateObject(983, 1542.5, -1647.6, 28.1, 0, 0, 0);
    CreateObject(3666, 1542.5, -1650.7, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1658.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1553.5, -1667.4, 27.9, 0, 0, 0);
    CreateObject(3666, 1545.6, -1672.8, 13.1, 0, 0, 0);
    CreateObject(3666, 1545.6, -1678.6, 13.1, 0, 0, 0);
    CreateObject(3934, 1564, -1703.3, 27.4, 0, 0, 0);
    CreateObject(3666, 1568, -1707, 27.9, 0, 0, 0);
    CreateObject(3666, 1559.9, -1707, 27.9, 0, 0, 0);
    CreateObject(3666, 1559.9, -1699.8, 27.9, 0, 0, 0);
    CreateObject(3666, 1568.1, -1699.7, 27.9, 0, 0, 0);
    CreateObject(3934, 1554.5, -1643.5, 27.4, 0, 0, 0);
    CreateObject(3666, 1558.6, -1639.9, 27.9, 0, 0, 0);
    CreateObject(3666, 1558.7, -1647.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1550.6, -1647.3, 27.9, 0, 0, 0);
    CreateObject(3666, 1550.3, -1639.9, 27.9, 0, 0, 0);
    CreateObject(3934, 1571.4, -1655.3, 27.4, 0, 0, 270.5);
    CreateObject(3666, 1574.9, -1651.2, 27.9, 0, 0, 0);
    CreateObject(3666, 1567.6, -1651.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1567.7, -1659.1, 27.9, 0, 0, 0);
    CreateObject(3666, 1575, -1659.1, 27.9, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
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 OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, FEHER,\"Üdvözöllek a szerveren! Érezd jól magad!\");
    SendClientMessage(playerid, FEHER,\"A szerveren sok mappolás várható és van!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
printf(\"Valaki elhagyta a szervert!\");
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/mycommand\", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

 
És a fejes lábas:
 
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
if(bodypart ==  BODY_PART_LEFT_LEG)
{
  if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
  {
   SendClientMessage(playerid, COLOR_LIGHTRED, \"Bal Lábon lõtted, ezért nem tud mozogni!\");
   TogglePlayerControllable(damagedid, false);
   SetPlayerDrunkLevel(damagedid, 50000);
   ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
   SetPlayerArmedWeapon(damagedid, 0);
   SendClientMessage(damagedid, COLOR_LIGHTRED, \"Bal Lábon lõttek, ezért nem bírsz mozogni!\");
  }
}
else if(bodypart == BODY_PART_RIGHT_LEG)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
  SendClientMessage(playerid, COLOR_LIGHTRED, \"Jobb lábon lõtted, ezért nem tud mozogni!\");
  TogglePlayerControllable(damagedid, false);
  SetPlayerDrunkLevel(damagedid, 50000);
  ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
  SetPlayerArmedWeapon(damagedid, 0);
  SendClientMessage(damagedid, COLOR_LIGHTRED, \"Jobb Lábon lõttek, ezért nem bírsz mozogni!\");
}
}
else if(bodypart == BODY_PART_HEAD)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
  SendClientMessage(playerid, COLOR_LIGHTRED, \"Fejenlõtted, ezért súlyosan megsérült és kórházba került!\");
  SendClientMessage(damagedid, COLOR_LIGHTRED, \"Fejenlõttek, ezért súlyosan megsérültél!\");
  SetPlayerHealth(damagedid,0);
}
}
return 1;
}

 
Segítés magadon:
 
if (strcmp(\"/segit\", cmdtext, true, 10) == 0)
{
  TogglePlayerControllable(playerid, true);
                SetPlayerDrunkLevel(playerid, 0);
                ClearAnimations(playerid);
  SendClientMessage(playerid, 0x33CCFFAA, \"Segítettél magadon!\");
  return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal