Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Üzenetek - pityusz200

Oldalak: 1 [2] 3
16
Sziasztok!
Van olyan szkript ami a térképről egy paranccsal eltünteti a \"jeleket\" ami jelzi a playerek honlétit?
Ez az RP-be segítene de ha nem RP-zünk akkor meg jó az ha látjuk! :) Ezért kéne paranccsal.
Jó lenne ha külön is lehetne állítani...
Pl: 1-2-3 látsszon a többi viszont ne
Remélem érthető a kérdés! :) Előre is köszönöm a válaszokat! :)

17
Segítségkérés / Hogy kell egy adott játékos ID-jét megjegyeztetni?
« Dátum: 2015. július 22. - 22:09:05 »
Sziasztok! Azt szeretném kérdezni ,hogy ha például megszokjuk ,hogy \"Gazsi\" az 1 ID-jű akkor ne kelljen abba a sorrendbe feljönni a szervere ,hogy megint
ő legyen az 1-es hanem megjegyzi a szerver.
Nem kell hatalmas szervere gondolni csak 10 környékén vagyunk de szeretném hogy az jó legyen :)
Remélem érthető a kérdésem! :) Előre is köszönöm a válaszokat! :)

18
SA-MP: Szerverfejlesztés / Munka (rendszer?) | Jelenleg 3db |
« Dátum: 2015. július 21. - 23:44:35 »
Sziasztok nekem ezt írta ki!
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
1 Error.
Mit rontottam el? Előre is köszi! :)

Dupla hozzászólás automatikusan összefûzve. ( 2015. július 21. - 23:45:40 )

Ja és nekem egy sorral bejeb teszi de miért? És baj?

19
SA-MP: Szerverfejlesztés / RP chatek
« Dátum: 2015. július 21. - 15:16:32 »
Sziasztok segítséget szeretnék kérni. Hogy kell bele tenni???
Nyitottam egy új pawnot be másoltam a megfelelő helyre és csak 8 error irt ki... Hogy kell be másolni?
Tudom hogy én szúrtam el valahol, de hol? Válaszokat előre is köszönöm! :)

20
Segítségkérés / Skin választó készités
« Dátum: 2015. június 13. - 03:04:29 »
Nagyon szépen köszönöm!  :) Még nem próbáltam de biztos sikerülni fog. Gratulálok a szkriptedhez nagyon jó lett!!!
Egy szerűen le vannak írva az utasítások, és a menü2 utolsó sora is nagyon kreatív :thumbsup: !
Köszönöm még egyszer!  :)

21
Szkript kérések / Szkriptet keresek
« Dátum: 2015. május 21. - 21:39:39 »
Szia! Köszönöm hogy válaszoltál! :) Igen a színek meg az játékos id-je azért ne változzon... :) De... van ilyen Filterszkript? És ha van akkor hol?

22
Szkript kérések / Szkriptet keresek
« Dátum: 2015. május 20. - 23:01:34 »
Sziasztok! Olyan kérdésem lenne hogy van-e olyan filterszkript ,hogy minden játékos eltüntet a térképről de egy parancsa az RCON admin egy adott játékost láthatóvá tesz a térképen és így fordítva (egy látható azért vissza tudjon tenni láthatatlanba).
De egyszerre több player is lehessen láthatatlan,látható. Előre is köszönöm válaszaitokat. :)

23
Segítségkérés / Skin választó készités
« Dátum: 2015. május 20. - 22:42:51 »
Sziasztok! Sok helyen néztem már de eddig nem sikerült a skin választó \"háttere\". Sokan azt írják, mutatják hogy a koordinátákat ide: \"public OnPlayerRequestClass(playerid, classid)\" kell írni. De nem akar működni valahogy ezt a sort érzékeli: ClassSel_SetupCharSelection(playerid). Ha úgy csinálóm ahogy írják,mutatják akkor csak a skint mutatja a hátteret nem. Mi a hiba?
Ez irányít:



ClassSel_SetupCharSelection(playerid)
{
      if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS)
{
       SetPlayerInterior(playerid,14);
   SetPlayerPos(playerid, 230.0503,80.5366,1005.0391);
   SetPlayerFacingAngle(playerid, 246.3956);
   SetPlayerCameraPos(playerid, 232.8280,79.1818,1005.0391);
   SetPlayerCameraLookAt(playerid, 228.8824,81.1760,1005.0391);
}
 
Ez meg ahogy írják,mutatják:



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;
{
       SetPlayerInterior(playerid,14);
   SetPlayerPos(playerid, 230.0503,80.5366,1005.0391);
   SetPlayerFacingAngle(playerid, 246.3956);
   SetPlayerCameraPos(playerid, 232.8280,79.1818,1005.0391);
   SetPlayerCameraLookAt(playerid, 228.8824,81.1760,1005.0391);
}
}
 
Ez a pár sor nem volt itt eredetileg:



{
       SetPlayerInterior(playerid,14);
   SetPlayerPos(playerid, 230.0503,80.5366,1005.0391);
   SetPlayerFacingAngle(playerid, 246.3956);
   SetPlayerCameraPos(playerid, 232.8280,79.1818,1005.0391);
   SetPlayerCameraLookAt(playerid, 228.8824,81.1760,1005.0391);
}
 
Előre is köszönöm segítségeiteket! :)

24
Szkript kérések / Hogy tudnék több filterscripet aktiválni 16-nál?
« Dátum: 2015. február 28. - 20:14:19 »
Az Ladmin mind az 6699sorát a avs 2778sorával??? De végül is kisebbeket megfogok próbálni, majd jelentkezem, azok csak pár száz sorosak  :D !
De köszönöm a válaszokat! :)

Dupla hozzászólás automatikusan összefûzve. ( [time]2015. Február 28. 21:09:47[/time] )

Nekem lefagy a pawn! :D Mit rontottam el? (hogy kell a code tagok közé teni?)
 
//------------------------------------------------------------------------------
// File:   jobs.pwn (version: 2.0)
//
// Desc:    Munkalehetőségek módokhoz
//
// Update:   2009/01/01 (verzió: 1.0)
//            - Első verzió megjelenése
//
//         2009/01/03 (verzió: 2.0)
//            - Autószerelő hiba javítva
//            - /quitjob parancsal történő hibák javítva
//            - parancsok hibái javítva
//
//         2009/03/26 (verzió: 2.0)
//            - fagyás javítva
//
// Author:   Spatrik
//
// Minden jog fenntartva, Copyright (c) 2009 [_PGB_]Spatrik
//------------------------------------------------------------------------------
#include <a_samp>
#define INVALID_DATA -1.11 // mindegy...
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define TEAM_CIVILIAN 1
#define TEAM_TAXI 2
#define TEAM_POLICE 3
#define TEAM_SERVISE 4
#define TEAM_AMBULANCE 5
#define TEAM_GUARD 6
forward Money();
new gTeam[MAX_PLAYERS];
new name[MAX_PLAYER_NAME];
new money;
new Float: dCam_Xes[212] = {
0.330000/*400*/,0.500000/*401*/,0.540000/*402*/,0.430000/*403*/,0.460000/*404*/,0.430000/*405*/,
1.379999/*406*/,0.600000/*407*/,0.439999/*408*/,0.460000/*409*/,0.419999/*410*/,0.490000/*411*/,
0.460000/*412*/,0.490000/*413*/,0.439999/*414*/,0.419999/*415*/,0.419999/*416*/,0.439999/*417*/,
0.519999/*418*/,0.409999/*419*/,0.519999/*420*/,0.449999/*421*/,0.409999/*422*/,0.579999/*423*/,
0.389999/*424*/,INVALID_DATA/*425*/,0.519999/*426*/,0.379999/*427*/,0.649999/*428*/,0.490000/*429*/,
0.400000/*430*/,0.709999/*431*/,0.379999/*432*/,0.490000/*433*/,0.259999/*434*/,INVALID_DATA/*435*/,
0.400000/*436*/,0.209999/*437*/,0.460000/*438*/,0.490000/*439*/,0.500000/*440*/,0.059999/*441*/,
0.490000/*442*/,0.389999/*443*/,0.540000/*444*/,0.479999/*445*/,0.689999/*446*/,0.419999/*447*/,
INVALID_DATA/*448*/,0.460000/*449*/,INVALID_DATA/*450*/,0.529999/*451*/,0.500000/*452*/,0.409999/*453*/,
-0.560000/*454*/,0.490000/*455*/,0.419999/*456*/,0.340000/*457*/,0.449999/*458*/,0.490000/*459*/,
0.319999/*460*/,INVALID_DATA/*461*/,INVALID_DATA/*462*/,INVALID_DATA/*463*/,INVALID_DATA/*464*/,INVALID_DATA/*465*/,
0.500000/*466*/,0.460000/*467*/,INVALID_DATA/*468*/,0.419999/*469*/,0.529999/*470*/,INVALID_DATA/*471*/,
-0.200000/*472*/,INVALID_DATA/*473*/,0.490000/*474*/,0.419999/*475*/,INVALID_DATA/*476*/,0.550000/*477*/,
0.439999/*478*/,0.490000/*479*/,0.409999/*480*/,-0.009999/*481*/,0.469999/*482*/,0.379999/*483*/,
INVALID_DATA/*484*/,0.150000/*485*/,INVALID_DATA/*486*/,0.460000/*487*/,0.449999/*488*/,0.500000/*489*/,
0.529999/*490*/,0.430000/*491*/,0.460000/*492*/,-0.670000/*493*/,0.479999/*494*/,0.490000/*495*/,
0.479999/*496*/,0.460000/*497*/,0.730000/*498*/,0.449999/*499*/,0.449999/*500*/,INVALID_DATA/*501*/,
0.419999/*502*/,0.409999/*503*/,0.460000/*504*/,0.500000/*505*/,0.469999/*506*/,0.540000/*507*/,
0.540000/*508*/,INVALID_DATA/*509*/,INVALID_DATA/*510*/,0.419999/*511*/,INVALID_DATA/*512*/,INVALID_DATA/*513*/,
0.449999/*514*/,0.560000/*515*/,0.469999/*516*/,0.509999/*517*/,0.509999/*518*/,0.349999/*519*/,
INVALID_DATA/*520*/,INVALID_DATA/*521*/,INVALID_DATA/*522*/,INVALID_DATA/*523*/,0.490000/*524*/,0.509999/*525*/,
0.469999/*526*/,0.409999/*527*/,0.500000/*528*/,0.490000/*529*/,INVALID_DATA/*530*/,INVALID_DATA/*531*/,
1.009999/*532*/,0.479999/*533*/,0.589999/*534*/,0.419999/*535*/,0.519999/*536*/,0.460000/*537*/,
0.709999/*538*/,INVALID_DATA/*539*/,0.519999/*540*/,0.479999/*541*/,0.509999/*542*/,0.449999/*543*/,
0.600000/*544*/,0.330000/*545*/,0.569999/*546*/,0.519999/*547*/,0.649999/*548*/,0.469999/*549*/,
0.519999/*550*/,0.490000/*551*/,0.620000/*552*/,0.430000/*553*/,0.540000/*554*/,0.439999/*555*/,
0.540000/*556*/,0.540000/*557*/,0.540000/*558*/,0.479999/*559*/,0.479999/*560*/,0.519999/*561*/,
0.509999/*562*/,0.419999/*563*/,0.059999/*564*/,0.479999/*565*/,0.540000/*566*/,0.509999/*567*/,
INVALID_DATA/*568*/,INVALID_DATA/*569*/,INVALID_DATA/*570*/,INVALID_DATA/*571*/,INVALID_DATA/*572*/,0.560000/*573*/,
0.230000/*574*/,0.500000/*575*/,0.469999/*576*/,1.289999/*577*/,0.469999/*578*/,0.460000/*579*/,
0.540000/*580*/,INVALID_DATA/*581*/,0.419999/*582*/,INVALID_DATA/*583*/,INVALID_DATA/*584*/,0.469999/*585*/,
INVALID_DATA/*586*/,0.519999/*587*/,0.699999/*588*/,0.419999/*589*/,INVALID_DATA/*590*/,INVALID_DATA/*591*/,
0.560000/*592*/,0.319999/*593*/,0.059999/*594*/,0.479999/*595*/,0.519999/*596*/,0.519999/*597*/,
0.519999/*598*/,0.500000/*599*/,0.519999/*600*/,0.529999/*601*/,0.479999/*602*/,0.519999/*603*/,
0.500000/*604*/,0.449999/*605*/,INVALID_DATA/*606*/,INVALID_DATA/*607*/,INVALID_DATA/*608*/,0.730000/*609*/,
INVALID_DATA/*610*/,INVALID_DATA/*611*/
};
public OnFilterScriptInit()  return print(\"eDriveCam by Epsilon loaded.\");
{
print(\"   Job system by [GH_Spatrik] betoltve!\");
money = SetTimer(\"Money\", 300000, true);
return 1;
}
new Float:dCam_Highs[212] = // Kamera magassága.
{
0.460000/*400*/,0.500000/*401*/,0.449999/*402*/,1.029999/*403*/,0.610000/*404*/,0.430000/*405*/,
INVALID_DATA/*406*/,0.779999/*407*/,0.589999/*408*/,0.500000/*409*/,0.569999/*410*/,0.409999/*411*/,
0.419999/*412*/,0.709999/*413*/,0.899999/*414*/,0.340000/*415*/,0.800000/*416*/,INVALID_DATA/*417*/,
0.569999/*418*/,INVALID_DATA/*419*/,0.529999/*420*/,0.389999/*421*/,0.479999/*422*/,0.769999/*423*/,
INVALID_DATA/*424*/,INVALID_DATA/*425*/,0.529999/*426*/,0.930000/*427*/,0.769999/*428*/,0.400000/*429*/,
INVALID_DATA/*430*/,1.330000/*431*/,INVALID_DATA/*432*/,1.240000/*433*/,0.409999/*434*/,INVALID_DATA/*435*/,
0.540000/*436*/,INVALID_DATA/*437*/,0.439999/*438*/,0.400000/*439*/,0.569999/*440*/,INVALID_DATA/*441*/,
0.469999/*442*/,1.029999/*443*/,1.340000/*444*/,0.509999/*445*/,INVALID_DATA/*446*/,INVALID_DATA/*447*/,
INVALID_DATA/*448*/,INVALID_DATA/*449*/,INVALID_DATA/*450*/,0.340000/*451*/,INVALID_DATA/*452*/,INVALID_DATA/*453*/,
INVALID_DATA/*454*/,1.220000/*455*/,0.889999/*456*/,0.550000/*457*/,0.419999/*458*/,0.709999/*459*/,
INVALID_DATA/*460*/,INVALID_DATA/*461*/,INVALID_DATA/*462*/,INVALID_DATA/*463*/,INVALID_DATA/*464*/,INVALID_DATA/*465*/,
0.529999/*466*/,0.519999/*467*/,INVALID_DATA/*468*/,INVALID_DATA/*469*/,0.720000/*470*/,INVALID_DATA/*471*/,
INVALID_DATA/*472*/,INVALID_DATA/*473*/,0.560000/*474*/,0.439999/*475*/,INVALID_DATA/*476*/,0.460000/*477*/,
0.529999/*478*/,0.629999/*479*/,0.430000/*480*/,INVALID_DATA/*481*/,0.540000/*482*/,0.509999/*483*/,
INVALID_DATA/*484*/,INVALID_DATA/*485*/,INVALID_DATA/*486*/,INVALID_DATA/*487*/,INVALID_DATA/*488*/,0.750000/*489*/,
0.750000/*490*/,0.439999/*491*/,0.550000/*492*/,INVALID_DATA/*493*/,0.449999/*494*/,0.620000/*495*/,
0.529999/*496*/,INVALID_DATA/*497*/,1.049999/*498*/,0.629999/*499*/,0.589999/*500*/,INVALID_DATA/*501*/,
0.449999/*502*/,0.479999/*503*/,INVALID_DATA/*504*/,0.750000/*505*/,0.370000/*506*/,0.500000/*507*/,
0.409999/*508*/,INVALID_DATA/*509*/,INVALID_DATA/*510*/,INVALID_DATA/*511*/,INVALID_DATA/*512*/,INVALID_DATA/*513*/,
0.910000/*514*/,0.819999/*515*/,0.540000/*516*/,0.519999/*517*/,0.449999/*518*/,INVALID_DATA/*519*/,
INVALID_DATA/*520*/,INVALID_DATA/*521*/,INVALID_DATA/*522*/,INVALID_DATA/*523*/,0.500000/*524*/,1.029999/*525*/,
0.389999/*526*/,0.579999/*527*/,0.670000/*528*/,0.620000/*529*/,INVALID_DATA/*530*/,INVALID_DATA/*531*/,
INVALID_DATA/*532*/,0.500000/*533*/,0.370000/*534*/,0.569999/*535*/,0.349999/*536*/,INVALID_DATA/*537*/,
INVALID_DATA/*538*/,INVALID_DATA/*539*/,0.389999/*540*/,0.400000/*541*/,0.519999/*542*/,0.569999/*543*/,
0.870000/*544*/,0.479999/*545*/,0.509999/*546*/,0.589999/*547*/,INVALID_DATA/*548*/,0.490000/*549*/,
0.400000/*550*/,0.519999/*551*/,1.000000/*552*/,INVALID_DATA/*553*/,0.689999/*554*/,0.379999/*555*/,
1.309999/*556*/,1.320000/*557*/,0.569999/*558*/,0.469999/*559*/,0.540000/*560*/,0.490000/*561*/,
0.519999/*562*/,INVALID_DATA/*563*/,INVALID_DATA/*564*/,0.430000/*565*/,0.550000/*566*/,0.379999/*567*/,
0.449999/*568*/,INVALID_DATA/*569*/,INVALID_DATA/*570*/,INVALID_DATA/*571*/,INVALID_DATA/*572*/,0.829999/*573*/,
0.759999/*574*/,0.709999/*575*/,0.589999/*576*/,INVALID_DATA/*577*/,0.680000/*578*/,0.800000/*579*/,
0.720000/*580*/,INVALID_DATA/*581*/,0.720000/*582*/,1.090000/*583*/,INVALID_DATA/*584*/,0.680000/*585*/,
INVALID_DATA/*586*/,0.449999/*587*/,1.159999/*588*/,0.750000/*589*/,INVALID_DATA/*590*/,INVALID_DATA/*591*/,
INVALID_DATA/*592*/,INVALID_DATA/*593*/,INVALID_DATA/*594*/,INVALID_DATA/*595*/,0.529999/*596*/,0.529999/*597*/,
0.540000/*598*/,0.750000/*599*/,0.500000/*600*/,INVALID_DATA/*601*/,0.409999/*602*/,0.349999/*603*/,
0.529999/*604*/,0.569999/*605*/,INVALID_DATA/*606*/,INVALID_DATA/*607*/,INVALID_DATA/*608*/,1.049999/*609*/,
INVALID_DATA/*610*/,INVALID_DATA/*611*/
};
public OnFilterScriptExit()
{
    KillTimer(money);
return 1;
}
#endif
public OnPlayerConnect(playerid) return print(\"JBel. betöltve by: Epsilon.\");
{
SendClientMessage(playerid, COLOR_GREY, \"Job System betöltve by [_PGB_]Spatrik\");
SendClientMessage(playerid, COLOR_GREY, \"Írd be /jobs a munkákért!\");
return 1;
}
new Float:dCam_Yes[212] =
{
0.029999/*400*/,-0.059999/*401*/,-0.349999/*402*/,1.450000/*403*/,-0.129999/*404*/,INVALID_DATA/*405*/,2.559999/*406*/,
2.890000/*407*/,2.730000/*408*/,1.059999/*409*/,-0.170000/*410*/,0.050000/*411*/,-0.129999/*412*/,0.779999/*413*/,
0.959999/*414*/,INVALID_DATA/*415*/,0.949999/*416*/,3.269999/*417*/,0.460000/*418*/,-0.209999/*419*/,0.059999/*420*/,
0.109999/*421*/,0.070000/*422*/,0.670000/*423*/,-0.090000/*424*/,2.549999/*425*/,0.059999/*426*/,1.100000/*427*/,0.649999/*428*/,
-0.500000/*429*/,0.519999/*430*/,4.730000/*431*/,2.769999/*432*/,1.159999/*433*/,-0.449999/*434*/,INVALID_DATA/*435*/,-0.170000/*436*/,
4.289999/*437*/,0.419999/*438*/,-0.540000/*439*/,0.750000/*440*/,-0.070000/*441*/,0.270000/*442*/,2.880000/*443*/,
0.349999/*444*/,-0.029999/*445*/,0.250000/*446*/,0.949999/*447*/,-0.340000/*448*/,3.359999/*449*/,INVALID_DATA/*450*/,-0.200000/*451*/,
2.980000/*452*/,1.570000/*453*/,2.730000/*454*/,1.169999/*455*/,1.389999/*456*/,-0.270000/*457*/,0.140000/*458*/,0.779999/*459*/,
0.280000/*460*/,-0.400000/*461*/,-0.340000/*462*/,-0.409999/*463*/,INVALID_DATA/*464*/,INVALID_DATA/*465*/,0.150000/*466*/,
0.109999/*467*/,-0.200000/*468*/,0.949999/*469*/,-0.039999/*470*/,-0.349999/*471*/,-0.159999/*472*/,0.579999/*473*/,-0.300000/*474*/,
-0.129999/*475*/,-0.449999/*476*/,-0.250000/*477*/,0.090000/*478*/,-0.070000/*479*/,-0.280000/*480*/,-0.340000/*481*/,
0.529999/*482*/,1.649999/*483*/,-5.010000/*484*/,-0.449999/*485*/,-0.389999/*486*/,1.620000/*487*/,0.730000/*488*/,
-0.090000/*489*/,0.460000/*490*/,-0.280000/*491*/,0.140000/*492*/,0.600000/*493*/,-0.289999/*494*/,INVALID_DATA/*495*/,-0.250000/*496*/,
1.620000/*497*/,1.379999/*498*/,0.209999/*499*/,-0.239999/*500*/,INVALID_DATA/*501*/,-0.119999/*502*/,-0.289999/*503*/,0.180000/*504*/,
-0.090000/*505*/,-0.340000/*506*/,0.050000/*507*/,1.419999/*508*/,-0.479999/*509*/,-0.270000/*510*/,2.009999/*511*/,
-0.219999/*512*/,-0.910000/*513*/,1.600000/*514*/,1.340000/*515*/,0.070000/*516*/,-0.019999/*517*/,0.070000/*518*/,
5.179999/*519*/,2.839999/*520*/,-0.400000/*521*/,-0.400000/*522*/,-0.400000/*523*/,1.450000/*524*/,0.259999/*525*/,
-0.079999/*526*/,-0.019999/*527*/,-0.140000/*528*/,-0.079999/*529*/,-0.319999/*530*/,-0.460000/*531*/,3.000000/*532*/,
-0.239999/*533*/,0.029999/*534*/,0.009999/*535*/,-0.219999/*536*/,5.130000/*537*/,5.989999/*538*/,0.349999/*539*/,-0.059999/*540*/,
-0.119999/*541*/,-0.150000/*542*/,0.090000/*543*/,2.509999/*544*/,-0.340000/*545*/,-0.159999/*546*/,INVALID_DATA/*547*/,4.570000/*548*/,
0.250000/*549*/,0.050000/*550*/,0.109999/*551*/,0.639999/*552*/,9.529999/*553*/,0.100000/*554*/,-0.170000/*555*/,0.100000/*556*/,
INVALID_DATA/*557*/,-0.239999/*558*/,-0.189999/*559*/,0.109999/*560*/,0.090000/*561*/,-0.050000/*562*/,2.640000/*563*/,
-0.070000/*564*/,-0.059999/*565*/,0.090000/*566*/,0.250000/*567*/,-0.029999/*568*/,INVALID_DATA/*569*/,1.960000/*570*/,
-0.180000/*571*/,-0.620000/*572*/,2.029999/*573*/,0.550000/*574*/,0.059999/*575*/,-0.159999/*576*/,21.059999/*577*/,3.430000/*578*/,
-0.159999/*579*/,-0.009999/*580*/,-0.400000/*581*/,0.560000/*582*/,-1.009999/*583*/,INVALID_DATA/*584*/,INVALID_DATA/*585*/,-0.419999/*586*/,
-0.239999/*587*/,2.289999/*588*/,-0.019999/*589*/,INVALID_DATA/*590*/,INVALID_DATA/*591*/,12.510000/*592*/,0.029999/*593*/,-0.070000/*594*/,
0.899999/*595*/,0.059999/*596*/,0.059999/*597*/,0.059999/*598*/,-0.090000/*599*/,0.059999/*600*/,-0.300000/*601*/,-0.119999/*602*/,
-0.419999/*603*/,0.150000/*604*/,0.090000/*605*/,INVALID_DATA/*606*/,INVALID_DATA/*607*/,INVALID_DATA/*608*/,1.379999/*609*/,
INVALID_DATA/*610*/,INVALID_DATA/*611*/
};
public OnPlayerDisconnect(playerid, reason)
{
if(IsValidPlayerObject(playerid,dcObject[playerid])==1) DestroyPlayerObject(playerid,dcObject[playerid]);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    new tmp[256];
    new cmd[256];
    new string[256];
    new giveplayerid, idx;
    cmd = strtok(cmdtext, idx);
    tmp = strtok(cmdtext, idx);
    giveplayerid = strval(tmp);
//Munkák--------------------------------------------------------------------
if(strcmp(cmd, \"/taxi\", true) == 0)
{
   if(gTeam[playerid] == TEAM_CIVILIAN)
   {
      GetPlayerName(playerid, name, sizeof (name));
      format(string, sizeof(string), \"Taxis, %s szolgálatban!\", name);
          SendClientMessageToAll(COLOR_GREEN, string);
          gTeam[playerid] = TEAM_TAXI;
          } else {
            SendClientMessage(playerid, COLOR_RED, \"Először lépj ki a mostani munkádból! (/quitjob)\");
          }
          return 1;
}
    if(strcmp(cmd, \"/police\", true) == 0)
{
   if(gTeam[playerid] == TEAM_CIVILIAN)
   {
          GetPlayerName(playerid, name, sizeof (name));
    format(string, sizeof(string), \"Rendőr, %s szolgálatban!\", name);
    SendClientMessageToAll(COLOR_GREEN, string);
    SetPlayerArmour(playerid, 100);
    gTeam[playerid] = TEAM_POLICE;
    } else {
    SendClientMessage(playerid, COLOR_RED, \"Először lépj ki a mostani munkádból! (/quitjob)\");
    }
          return 1;
    }
    if(strcmp(cmd, \"/carservice\", true) == 0)
{
   if(gTeam[playerid] == TEAM_CIVILIAN)
   {
    GetPlayerName(playerid, name, sizeof (name));
    format(string, sizeof(string), \"Autószerelő, %s szolgálatban!\", name);
    SendClientMessageToAll(COLOR_GREEN, string);
    gTeam[playerid] = TEAM_SERVISE;
    } else {
    SendClientMessage(playerid, COLOR_RED, \"Először lépj ki a mostani munkádból! (/quitjob)\");
    }
          return 1;
}
if(strcmp(cmd, \"/ambulance\", true) == 0)
{
   if(gTeam[playerid] == TEAM_CIVILIAN)
   {
    GetPlayerName(playerid, name, sizeof (name));
    format(string, sizeof(string), \"Mentős, %s szolgálatban!\", name);
    SendClientMessageToAll(COLOR_GREEN, string);
    SetPlayerHealth(playerid, 100);
    gTeam[playerid] = TEAM_AMBULANCE;
    } else {
    SendClientMessage(playerid, COLOR_RED, \"Először lépj ki a mostani munkádból! (/quitjob)\");
    }
          return 1;
}
if(strcmp(cmd, \"/guard\", true) == 0)
{
   if(gTeam[playerid] == TEAM_CIVILIAN)
   {
    GetPlayerName(playerid, name, sizeof (name));
    format(string, sizeof(string), \"Testőr, %s szolgálatban!\", name);
    SendClientMessageToAll(COLOR_GREEN, string);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    gTeam[playerid] = TEAM_GUARD;
    } else {
    SendClientMessage(playerid, COLOR_RED, \"Először lépj ki a mostani munkádból! (/quitjob)\");
    }
          return 1;
}
//Egyéb parancsok
if(strcmp(cmd, \"/quitjob\", true) == 0)
{
           if(gTeam[playerid] == TEAM_TAXI || gTeam[playerid] == TEAM_POLICE || gTeam[playerid] == TEAM_SERVISE || gTeam[playerid] == TEAM_AMBULANCE || gTeam[playerid] == TEAM_GUARD)
            {
               gTeam[playerid] = TEAM_CIVILIAN;
       } else {
       SendClientMessage(playerid, COLOR_RED, \"Most sincs munkád!\");
    }
          return 1;
}
    if(strcmp(cmd, \"/jobs\", true) == 0)
    {
    SendClientMessage(playerid, COLOR_RED, \"MUNKÁK:\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/taxi - Taxis\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/police - Rendőr\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/carservice - Autószerelő\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/ambulance - Mentős\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/guard - Testőr\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/quitjob - kilép a munkából\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/job-cmds - munka parancsok\");
    return 1;
    }
    if(strcmp(cmd, \"/job-cmds\", true) == 0)
    {
    SendClientMessage(playerid, COLOR_RED, \"PARANCSOK:\");
    if(gTeam[playerid] == TEAM_POLICE)
       {
           SendClientMessage(playerid, COLOR_YELLOW, \"Rendőr parancsok:\");
           SendClientMessage(playerid, COLOR_YELLOW, \"/sokkol <ID>, /jail <ID>, /unjail <ID>\");
    }
else if(gTeam[playerid] == TEAM_SERVISE)
{
    SendClientMessage(playerid, COLOR_YELLOW, \"Autószerelő parancsok:\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/javitas <ID>\");
}
else if(gTeam[playerid] == TEAM_AMBULANCE)
{
    SendClientMessage(playerid, COLOR_YELLOW, \"Mentős parancsok:\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/heal <ID>\");
}
else if(gTeam[playerid] == TEAM_AMBULANCE)
{
    SendClientMessage(playerid, COLOR_YELLOW, \"Testőr parancsok:\");
    SendClientMessage(playerid, COLOR_YELLOW, \"/guard <ID>\");
}
else if(gTeam[playerid] == TEAM_CIVILIAN)
{
    SendClientMessage(playerid, COLOR_YELLOW, \"Nincs munkád!\");
}
    return 1;
    }
    //Rendőrségi parancsok------------------------------------------------------
    new jailed[MAX_PLAYERS];
    if(strcmp(cmd, \"/sokkol\", true) == 0)
{
    if(gTeam[playerid] == TEAM_POLICE)
       {
           if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_RED, \"[HASZNÁLAT]: /sokkol <ID>\");
      return 1;
   }
   if(giveplayerid == playerid)
   {
      SendClientMessage(playerid, COLOR_RED, \"Nem sokkolhatod meg magad, vagy hibás az ID!\");
      } else {
      if(IsPlayerConnected(giveplayerid))
      {
          GetPlayerName(playerid, name, sizeof (name));
          format(string, sizeof(string), \"%s megsokkolt a sokkolójával!\", name);
          SendClientMessage(giveplayerid, COLOR_RED, string);
          new Float:Health;
          SetPlayerHealth(playerid, GetPlayerHealth(playerid, Health) -50);
          SendClientMessage(playerid, COLOR_GREEN, \"Sikeres sokkolás!\");
          } else {
          SendClientMessage(playerid, COLOR_RED, \"Nincs ilyen játékos!\");
      }
   }
} else {
SendClientMessage(playerid,COLOR_RED,\"Nem vagy rendőr!\");
}
return 1;
}
if(strcmp(cmd, \"/jail\", true) == 0)
{
    if(gTeam[playerid] == TEAM_POLICE)
       {
           if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_RED, \"[HASZNÁLAT]: /jail <ID>\");
      return 1;
   }
   if(giveplayerid == playerid)
   {
      SendClientMessage(playerid, COLOR_RED, \"Nem zárhatod be magad, vagy hibás az ID!\");
      } else {
      if(IsPlayerConnected(giveplayerid))
      {
          if (jailed[giveplayerid] == 0)
          {
             GetPlayerName(playerid, name, sizeof (name));
             format(string, sizeof(string), \"%s lecsukott!\", name);
             SendClientMessage(giveplayerid, COLOR_RED, string);
             new string2[256];
             new name2[MAX_PLAYER_NAME];
             GetPlayerName(giveplayerid, name2, sizeof (name2));
             format(string2, sizeof(string2), \"%s lecsukta %s-t!\", name, name2);
             SendClientMessageToAll(COLOR_RED, string2);
             SetPlayerInterior(giveplayerid, 6);
             SetPlayerPos(giveplayerid, 264.3591,77.5832,1001.0391);
             SetCameraBehindPlayer(giveplayerid);
             ResetPlayerWeapons(giveplayerid);
             ResetPlayerMoney(giveplayerid);
             jailed[giveplayerid] = 1;
             SendClientMessage(playerid, COLOR_GREEN, \"Sikeres lecsukás!\");
             } else {
             SendClientMessage(playerid, COLOR_RED, \"Ez a játékos már le van csukva!\");
         }
                  } else {
          SendClientMessage(playerid, COLOR_RED, \"Nincs ilyen játékos!\");
      }
   }
} else {
SendClientMessage(playerid,COLOR_RED,\"Nem vagy rendőr!\");
}
return 1;
}
if(strcmp(cmd, \"/unjail\", true) == 0)
{
    if(gTeam[playerid] == TEAM_POLICE)
       {
           if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_RED, \"[HASZNÁLAT]: /unjail <ID>\");
      return 1;
   }
   if(giveplayerid == playerid)
   {
      SendClientMessage(playerid, COLOR_RED, \"Nem engedheted ki magad, vagy hibás az ID!\");
      } else {
      if(IsPlayerConnected(giveplayerid))
      {
          if (jailed[giveplayerid] == 1)
          {
             GetPlayerName(playerid, name, sizeof (name));
             format(string, sizeof(string), \"%s kiengedett!\", name);
             SendClientMessage(giveplayerid, COLOR_RED, string);
             new string2[256];
             new name2[MAX_PLAYER_NAME];
             GetPlayerName(giveplayerid, name2, sizeof (name2));
             format(string2, sizeof(string2), \"%s kiengedte %s-t!\", name, name2);
             SendClientMessageToAll(COLOR_RED, string2);
             SetPlayerInterior(giveplayerid, 0);
             SetPlayerPos(giveplayerid,1546.1195,-1675.4786,13.5617);
             SetCameraBehindPlayer(giveplayerid);
             ResetPlayerWeapons(giveplayerid);
             jailed[giveplayerid] = 0;
             SendClientMessage(playerid, COLOR_GREEN, \"Sikeres kiengedés!\");
             } else {
             SendClientMessage(playerid, COLOR_RED, \"Ez a játékos már ki van engedve!\");
         }
          } else {
          SendClientMessage(playerid, COLOR_RED, \"Nincs ilyen játékos!\");
      }
   }
} else {
SendClientMessage(playerid,COLOR_RED,\"Nem vagy rendőr!\");
}
return 1;
}
//Autószerelő parancsok
new vehicleid = GetPlayerVehicleID(giveplayerid);
if(strcmp(cmd, \"/javitas\", true) == 0)
{
    if(gTeam[playerid] == TEAM_SERVISE)
       {
           if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_RED, \"[HASZNÁLAT]: /javitas <ID>\");
      return 1;
   }
   if(giveplayerid == playerid)
   {
      SendClientMessage(playerid, COLOR_RED, \"Nem javíthatod meg a saját kocsidat, vagy hibás az ID!\");
      } else {
      if(IsPlayerConnected(giveplayerid))
      {
          GetPlayerName(playerid, name, sizeof (name));
          format(string, sizeof(string), \"%s megjavította a kocsidat!\", name);
          SendClientMessage(giveplayerid, COLOR_RED, string);
          SetVehicleHealth(vehicleid, 1000);
          GivePlayerMoney(giveplayerid, -50);
          GivePlayerMoney(playerid, 50);
          SendClientMessage(playerid, COLOR_GREEN, \"Sikeres javítás!\");
          } else {
          SendClientMessage(playerid, COLOR_RED, \"Nincs ilyen játékos!\");
      }
   }
} else {
SendClientMessage(playerid,COLOR_RED,\"Nem vagy autószerelő!\");
}
return 1;
}
//Mentős parancsok
if(strcmp(cmd, \"/heal\", true) == 0)
{
    if(gTeam[playerid] == TEAM_AMBULANCE)
       {
           if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_RED, \"[HASZNÁLAT]: /heal <ID>\");
      return 1;
   }
   if(giveplayerid == playerid)
   {
      SendClientMessage(playerid, COLOR_RED, \"Nem gyógyíthatod meg magad, vagy hibás az ID!\");
      } else {
      if(IsPlayerConnected(giveplayerid))
      {
          GetPlayerName(playerid, name, sizeof (name));
          format(string, sizeof(string), \"%s megmentette az életedet!\", name);
          SendClientMessage(giveplayerid, COLOR_RED, string);
          SetPlayerHealth(giveplayerid, 100);
          GivePlayerMoney(giveplayerid, -100);
          GivePlayerMoney(playerid, 100);
          SendClientMessage(playerid, COLOR_GREEN, \"Sikeres mentés!\");
          } else {
          SendClientMessage(playerid, COLOR_RED, \"Nincs ilyen játékos!\");
      }
   }
} else {
SendClientMessage(playerid,COLOR_RED,\"Nem vagy mentős!\");
}
return 1;
}
//Testőr parancsok
if(strcmp(cmd, \"/guard\", true) == 0)
{
    if(gTeam[playerid] == TEAM_AMBULANCE)
       {
           if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_RED, \"[HASZNÁLAT]: /guard <ID>\");
      return 1;
   }
   if(giveplayerid == playerid)
   {
      SendClientMessage(playerid, COLOR_RED, \"Nem védheted meg magad, vagy hibás az ID!\");
      } else {
      if(IsPlayerConnected(giveplayerid))
      {
          GetPlayerName(playerid, name, sizeof (name));
          format(string, sizeof(string), \"%s az életedre fog vigyázni!\", name);
          SendClientMessage(giveplayerid, COLOR_RED, string);
          GivePlayerMoney(giveplayerid, -1000);
          GivePlayerMoney(playerid, 1000);
         GivePlayerWeapon(playerid, 4, 1);
         GivePlayerWeapon(playerid, 23, 1000);
         GivePlayerWeapon(playerid, 31, 10000);
          SendClientMessage(playerid, COLOR_GREEN, \"Elvállaltad a melót!\");
          } else {
          SendClientMessage(playerid, COLOR_RED, \"Nincs ilyen játékos!\");
      }
   }
} else {
SendClientMessage(playerid,COLOR_RED,\"Nem vagy testőr!\");
}
return 1;
}
return 0;
}
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0 || classid == 1)
    {
        gTeam[playerid] = TEAM_CIVILIAN;
    }
}
public Money()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
         if(gTeam == TEAM_TAXI || gTeam == TEAM_POLICE || gTeam == TEAM_SERVISE || TEAM_AMBULANCE || TEAM_GUARD)
         {
             GivePlayerMoney(i, 150);
             SendClientMessage(i, COLOR_WHITE, \"[FIZETÉS]: Kaptál 150$-t!\");
         }
    }
}
{
    if(!strcmp(cmdtext, \"/fps\", true) || !strcmp(cmdtext, \"/fps\", true))
    {
new Sofor = GetPlayerState(playerid);
if(Sofor == PLAYER_STATE_DRIVER)
{
       if(IsValidPlayerObject(playerid,dcObject[playerid])==1) DestroyPlayerObject(playerid,dcObject[playerid]);
new pv=GetPlayerVehicleID(playerid),slot=GetVehicleModel(pv)-400;
if(dCam_Xes[slot] == INVALID_DATA || INVALID_DATA == dCam_Yes[slot] || INVALID_DATA == dCam_Highs[slot]) return 0;
dcObject[playerid] = CreatePlayerObject(playerid,0,0.0,0.0,0.0,0.0,0.0,0.0);
        AttachPlayerObjectToVehicle(playerid,dcObject[playerid],pv,-dCam_Xes[slot],dCam_Yes[slot],dCam_Highs[slot],0.0,0.0,0.0);
        AttachCameraToPlayerObject(playerid,dcObject[playerid]);
        }else{
       if(IsValidPlayerObject(playerid,dcObject[playerid])==1) DestroyPlayerObject(playerid,dcObject[playerid]);
new pv=GetPlayerVehicleID(playerid),slot=GetVehicleModel(pv)-400;
if(dCam_Xes[slot] == INVALID_DATA || INVALID_DATA == dCam_Yes[slot] || INVALID_DATA == dCam_Highs[slot]) return 0;
dcObject[playerid] = CreatePlayerObject(playerid,0,0.0,0.0,0.0,0.0,0.0,0.0);
        AttachPlayerObjectToVehicle(playerid,dcObject[playerid],pv,dCam_Xes[slot],dCam_Yes[slot],dCam_Highs[slot],0.0,0.0,0.0);
        AttachCameraToPlayerObject(playerid,dcObject[playerid]);
        }
        return 1;
    }
    if(!strcmp(cmdtext, \"/fps ki\", true) || !strcmp(cmdtext, \"/fps ki\", true))
    {
        new Sofor = GetPlayerState(playerid);
if(Sofor == PLAYER_STATE_DRIVER)
{
    if(IsValidPlayerObject(playerid,dcObject[playerid])==1)DestroyPlayerObject(playerid,dcObject[playerid]);
SetCameraBehindPlayer(playerid);
}else{
        if(IsValidPlayerObject(playerid,dcObject[playerid])==1)DestroyPlayerObject(playerid,dcObject[playerid]);
SetCameraBehindPlayer(playerid);
}
        return 1;
    }
    /*if(!strcmp(cmdtext, \"/utasbelso\", true) || !strcmp(cmdtext, \"/utasbelső\", true))
    {
       if(IsValidPlayerObject(playerid,dcObject[playerid])==1) DestroyPlayerObject(playerid,dcObject[playerid]);
new pv=GetPlayerVehicleID(playerid),slot=GetVehicleModel(pv)-400;
if(dCam_Xes[slot] == INVALID_DATA || INVALID_DATA == dCam_Yes[slot] || INVALID_DATA == dCam_Highs[slot]) return 0;
dcObject[playerid] = CreatePlayerObject(playerid,0,0.0,0.0,0.0,0.0,0.0,0.0);
        AttachPlayerObjectToVehicle(playerid,dcObject[playerid],pv,dCam_Xes[slot],dCam_Yes[slot],dCam_Highs[slot],0.0,0.0,0.0);
        AttachCameraToPlayerObject(playerid,dcObject[playerid]);
        return 1;
    }
    if(!strcmp(cmdtext, \"/utasbelso ki\", true) || !strcmp(cmdtext, \"/utasbelső ki\", true))
    {
    if(IsValidPlayerObject(playerid,dcObject[playerid])==1)DestroyPlayerObject(playerid,dcObject[playerid]);
SetCameraBehindPlayer(playerid);
        return 1;
    }*/
    return 0;
}
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
//Police cars
new vehicleid = GetPlayerVehicleID(playerid);
        if(GetVehicleModel(vehicleid) == 599 || GetVehicleModel(vehicleid) == 598 || GetVehicleModel(vehicleid) == 597 || GetVehicleModel(vehicleid) == 596)
       {
           if(gTeam[playerid] == TEAM_POLICE)
           {
               RemovePlayerFromVehicle(playerid);
               SendClientMessage(playerid, COLOR_RED, \"Ez a jármű a rendőröké!. Írd be a rendőrös munkához, hogy /police vagy nem vezetheted a járművet!\");
           }
       }
       //Taxi
       if(GetVehicleModel(vehicleid) == 420)
       {
           if(gTeam[playerid] == TEAM_TAXI)
           {
               RemovePlayerFromVehicle(playerid);
               SendClientMessage(playerid, COLOR_RED, \"Ez a jármű a taxisoké!. Írd be a taxis munkához, hogy /taxi vagy nem vezetheted a járművet!\");
           }
       }
       //Mentős
       if(GetVehicleModel(vehicleid) == 416)
       {
           if(gTeam[playerid] == TEAM_AMBULANCE)
           {
               RemovePlayerFromVehicle(playerid);
               SendClientMessage(playerid, COLOR_RED, \"Ez a jármű a mentősöké!. Írd be a mentős munkához, hogy /ambulance vagy nem vezetheted a járművet!\");
           }
       }
}
return 1;
}
{
/*if(newstate == PLAYER_STATE_DRIVER)
{
       if(IsValidPlayerObject(playerid,dcObject[playerid])==1) DestroyPlayerObject(playerid,dcObject[playerid]);
new pv=GetPlayerVehicleID(playerid),slot=GetVehicleModel(pv)-400;
if(dCam_Xes[slot] == INVALID_DATA || INVALID_DATA == dCam_Yes[slot] || INVALID_DATA == dCam_Highs[slot]) return 0;
dcObject[playerid] = CreatePlayerObject(playerid,0,0.0,0.0,0.0,0.0,0.0,0.0);
        AttachPlayerObjectToVehicle(playerid,dcObject[playerid],pv,-dCam_Xes[slot],dCam_Yes[slot],dCam_Highs[slot],0.0,0.0,0.0);
        AttachCameraToPlayerObject(playerid,dcObject[playerid]);
}*/
if(oldstate == PLAYER_STATE_DRIVER)
{
    if(IsValidPlayerObject(playerid,dcObject[playerid])==1)DestroyPlayerObject(playerid,dcObject[playerid]);
SetCameraBehindPlayer(playerid);
}
#if !defined INGORE_PASSENGERS
/*if(newstate == PLAYER_STATE_PASSENGER&&GetPlayerVehicleSeat(playerid)==1)
{
       if(IsValidPlayerObject(playerid,dcObject[playerid])==1) DestroyPlayerObject(playerid,dcObject[playerid]);
new pv=GetPlayerVehicleID(playerid),slot=GetVehicleModel(pv)-400;
if(dCam_Xes[slot] == INVALID_DATA || INVALID_DATA == dCam_Yes[slot] || INVALID_DATA == dCam_Highs[slot]) return 0;
dcObject[playerid] = CreatePlayerObject(playerid,0,0.0,0.0,0.0,0.0,0.0,0.0);
        AttachPlayerObjectToVehicle(playerid,dcObject[playerid],pv,dCam_Xes[slot],dCam_Yes[slot],dCam_Highs[slot],0.0,0.0,0.0);
        AttachCameraToPlayerObject(playerid,dcObject[playerid]);
}*/
if(oldstate == PLAYER_STATE_PASSENGER)
{
    if(IsValidPlayerObject(playerid,dcObject[playerid])==1)DestroyPlayerObject(playerid,dcObject[playerid]);
SetCameraBehindPlayer(playerid);
}
#endif
return 1;
}
public OnPlayerDeath(playerid)
{
gTeam[playerid] = TEAM_CIVILIAN;
    SendClientMessage(playerid, COLOR_RED, \"Meghaltál azaz kiléptél a munkádból! \");
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= \' \'))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > \' \') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}

25
Szkript kérések / Hogy tudnék több filterscripet aktiválni 16-nál?
« Dátum: 2015. február 28. - 18:28:14 »
Tudom hogy meg kérdeztem megint ,de biztos van rá lehetőség, valami kód valami, filterscrip ami elindítja a filterscripeket ,vagy plugin! Összeírni nagyon nehéz lenne, és bonyolult is számomra. Kérlek bármilyen ötlet ami működik is, biztos van kell lenie! A készítők tán csak gondoltak egy kiskapura...

26
Szkript kérések / Hogy tudnék több filterscripet aktiválni 16-nál?
« Dátum: 2015. február 27. - 22:42:08 »
Hello! Segítséget kérnék abban az ügyben hogy nem enged 16 filterscriptnél többet \"aktiválni\".
Próbáltam módszereket de nem megy egyik például ez:
A PIROS rész a lényeg
 
//----------------------------------------------------------
//
//  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(\"Running Grand Larceny - by the SA-MP team\\n\");
print(\"---------------------------------------\\n\");
}
//----------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,\"~w~Grand Larceny\",3000,4);
     SendClientMessage(playerid,0x0FFDD349,\"asd\");
     // 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,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);
    SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);
   
    GivePlayerWeapon(playerid,WEAPON_COLT45,100);
//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()
{
   SendRconCommand(\"loadfs NÉV\");
SendRconCommand(\"loadfs NÉV\");
SendRconCommand(\"loadfs NÉV\");
SendRconCommand(\"loadfs NÉV\");
SendRconCommand(\"loadfs NÉV\");

AddStaticVehicle(420,1363.7238,-1652.1381,13.1643,274.1217,6,1); // autó2
AddStaticVehicle(420,1364.1516,-1644.1221,13.1606,271.9232,6,1); // autó3
AddStaticVehicle(420,1363.3712,-1636.4072,13.1619,272.7930,6,1); // autó4
AddStaticVehicle(431,1360.8593,-1667.7515,13.6044,311.6530,92,72); // autó5
AddStaticVehicle(431,1362.5212,-1674.1616,13.6066,310.1420,47,74); // autó6
AddStaticVehicle(409,1382.9423,-1670.6632,13.2713,9.1518,1,1); // auto7
AddStaticVehicle(601,1534.7493,-1645.2303,5.6494,179.6665,1,1); // auto8
AddStaticVehicle(601,1539.0255,-1644.2385,5.7272,179.9720,1,1); // auto9
AddStaticVehicle(428,1546.5679,-1658.9646,6.0149,89.7524,4,75); // auto10
AddStaticVehicle(428,1545.5356,-1662.7958,6.0152,88.8117,4,75); // auto11
AddStaticVehicle(477,261.4139,-1370.0181,52.8613,303.4997,101,1); // auto12
AddStaticVehicle(477,263.9786,-1374.4258,52.8299,311.1645,121,1); // auto13
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(264,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(147,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(100,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(29,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(74,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);
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 weapons in interiors
if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
    SetPlayerArmedWeapon(playerid,0); // fists
    return 0; // no syncing until they change their weapon
}
// Don\'t allow minigun
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
    return 0;
}
/* 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;
}
//----------------------------------------------------------

 
De nem megy!Már probáltam már azt a parancssort filterscripbe de, nem megy.... tettem már az elejére, a végére, de nem megy....
Kérhetnék légyszives valami ötletet, vagy új dolgot amit kipróbálhatók és hogy végre több filtescripet tehessek be!  :o
[mod]Máskor légyszíves helyezd ki a code tageket, köszönöm![/mod]

27
Köszönöm a válaszokat! Ezt kiprobálom remlem sikerül! :) (aztán ha ez nem megy a többit....)
 
Idézetet írta: Lofoli date=1424871944\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"52765\" data-ipsquote-contentclass=\"forums_Topic


public OnGameModeInit(){
SendRconCommand(\"loadfs fs\");
SendRconCommand(\"loadfs fs1\");
SendRconCommand(\"loadfs fs2\");
SendRconCommand(\"loadfs fs3\");
return 1;}

 
Ezt Már próbáltad?
 

28
Szép lesz mire én azt átmásolgatóm..... :) De köszönöm a választ! De még azt kérdezném ,hogy nem fog össze kavarodni?

29
Hello! Ezt nem tom ,hogy ide kéne írni vagy újba de hogy kell összeírni két filterscriptet? :)

30
A második hozászolást nem értem de biztos valami hasznos!  :shurg: De a válaszokat köszönöm majd meg probálom egy \"fájlba\" irni! :) Köszönöm!

Oldalak: 1 [2] 3
SimplePortal 2.3.7 © 2008-2024, SimplePortal