Ü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 - FreePlay

Oldalak: 1 2 [3]
31
SA-MP: Szerverfejlesztés / Szavazós Minigame
« Dátum: 2013. május 21. - 14:40:05 »
Idézetet írta: TheDon date=1369139658\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"37643\" data-ipsquote-contentclass=\"forums_Topic


Remélem Tetszeni Fog :)) 
Kövi Verzióban Már 6-Játék Lesz
 
Egyébként a DontFall az nem a Fallout? Ha nem akkor elnézést kérek mert keverem mással.
 
[/quote]
Ahogy gondolod itt Nem a semmibe tünek el hanem elöször megmozdúl aztán lemegy

32
SA-MP: Szerverfejlesztés / Szavazós Minigame
« Dátum: 2013. május 21. - 14:33:10 »
Remélem Tetszeni Fog :)) 
Kövi Verzióban Már 6-Játék Lesz 

33
SA-MP: Szerverfejlesztés / Szavazós Minigame
« Dátum: 2013. május 21. - 14:28:53 »
Idézetet írta: GrP date=1369139262\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"37643\" data-ipsquote-contentclass=\"forums_Topic
Stunt szerverekre van funra szerintem tökéletes. Gratuálok. !
 
Köszönöm Sztem minden FreeRoam Szerverre Tökéletes és szórakoztató.

34
SA-MP: Szerverfejlesztés / Szavazós Minigame
« Dátum: 2013. május 21. - 14:16:13 »
Csõtészta
Készítettem egy szavazós minigamet 
2 Játék van benne : DontFall ahol  elltünek az objectek (Leesnek)   
A másik Pedig : Derby Gondolom eltudjátok képzelni..
Ha kiesik egy Player Akkor  elkezd Specelni egy bent lévõ Játékost. 
 
Kép:
\"width=500http://kepfeltoltes.hu/130521/sa-mp-024_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130521/sa-mp-023_www.kepfeltoltes.hu_.png[/img]
Kód:
[mod]Eltávolítva, lopott script.[/mod]

35
Segítségkérés / Error :(
« Dátum: 2013. május 16. - 16:55:35 »
Üdv  Miért van ez    :shurg:     :cry3:  :tantrum:   ???
HIBA
C:\\Documents and Settings\\Administrator\\Asztal\\Új mappa (2)\\filterscripts\\racescr.pwn(547) : error 017: undefined symbol \"f_open\"
C:\\Documents and Settings\\Administrator\\Asztal\\Új mappa (2)\\filterscripts\\racescr.pwn(547) : warning 213: tag mismatch
C:\\Documents and Settings\\Administrator\\Asztal\\Új mappa (2)\\filterscripts\\racescr.pwn(549) : error 017: undefined symbol \"f_read\"
C:\\Documents and Settings\\Administrator\\Asztal\\Új mappa (2)\\filterscripts\\racescr.pwn(549) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\Administrator\\Asztal\\Új mappa (2)\\filterscripts\\racescr.pwn(570) : error 017: undefined symbol \"f_close\"
C:\\Documents and Settings\\Administrator\\Asztal\\Új mappa (2)\\filterscripts\\racescr.pwn(547) : warning 204: symbol is assigned a value that is never used: \"example\"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
3 Errors.

 
A FS 
 
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <fixchars.h>
#include <filemanager>
#define red        0xFF0000AA
#define orange        0xFF9900AA
#define Format(%0,%1,%2) format(%0,sizeof(%0),%1,%2)
#define FormatTo(%0,%1) format(%0,sizeof(%0),%1)
stock StrCheck(str[],start,end)
{
for(new i=start; i < end; i++)
{
    if(str == \"\\r\\n\")strdel(str,i,i+1);
}
}
forward RaceCount();
forward RaceTimeTimer();
forward DelRace();
forward UpdateHelyezes();
new CurrentRace;
new CurrentRaceCar;
new CurrentRaceName[50];
new RaceCountTick;
new RaceTimeTimerTick;
new RaceHelyezes[MAX_PLAYERS];
new Rekorder[MAX_PLAYER_NAME];
new RekorderTime;
new RaceCPs[MAX_PLAYERS] = 0;
new PlayerInRace[MAX_PLAYERS];
new PlayerOutRace[MAX_PLAYERS];
new RaceCountdown = 20;
new PlayersInRace = 0;
new PlayersOutRace;
new MaxCPs;
new StartPlayersInRace = 0;
new RaceTimeer;
new CurrentRaceMax;
new RaceFinal = 1;
new   Float:xyzpos[3];
new WinCost[5];
new bool:RaceStarted = false;
new bool:InRace       = false;
new Float:TheRaceCP[200][3];
new Text:RaceHatter;
new Text:HelyezesSzoveg;
new PlayerText:Helyezes[MAX_PLAYERS];
new Text:IdoSzoveg;
new Text:CPSzoveg;
new PlayerText:Ido[MAX_PLAYERS];
new PlayerText:CP[MAX_PLAYERS];
public OnFilterScriptExit()
{
TextDrawDestroy(RaceHatter);
TextDrawDestroy(HelyezesSzoveg);
TextDrawDestroy(IdoSzoveg);
TextDrawDestroy(CPSzoveg);
for(new i; i<MAX_PLAYERS;i++)
{
PlayerTextDrawDestroy(i,Helyezes);
PlayerTextDrawDestroy(i,Ido);
PlayerTextDrawDestroy(i,CP);
}
return 1;
}
public OnFilterScriptInit()
{
//TXTDRW
RaceHatter = TextDrawCreate(614.000000, 281.000000, \"     \");
TextDrawBackgroundColor(RaceHatter, 255);
TextDrawFont(RaceHatter, 1);
TextDrawLetterSize(RaceHatter, 0.500000, 1.000000);
TextDrawColor(RaceHatter, -1);
TextDrawSetOutline(RaceHatter, 0);
TextDrawSetProportional(RaceHatter, 1);
TextDrawSetShadow(RaceHatter, 1);
TextDrawUseBox(RaceHatter, 1);
TextDrawBoxColor(RaceHatter, 168430180);
TextDrawTextSize(RaceHatter, 493.000000, 0.000000);
HelyezesSzoveg = TextDrawCreate(497.000000, 279.000000, \"Helyezes:\");
TextDrawBackgroundColor(HelyezesSzoveg, 255);
TextDrawFont(HelyezesSzoveg, 1);
TextDrawLetterSize(HelyezesSzoveg, 0.430000, 1.200000);
TextDrawColor(HelyezesSzoveg, -1);
TextDrawSetOutline(HelyezesSzoveg, 0);
TextDrawSetProportional(HelyezesSzoveg, 1);
TextDrawSetShadow(HelyezesSzoveg, 1);
IdoSzoveg = TextDrawCreate(497.000000, 293.000000, \"Ido:\");
TextDrawBackgroundColor(IdoSzoveg, 255);
TextDrawFont(IdoSzoveg, 1);
TextDrawLetterSize(IdoSzoveg, 0.430000, 1.200000);
TextDrawColor(IdoSzoveg, -1);
TextDrawSetOutline(IdoSzoveg, 0);
TextDrawSetProportional(IdoSzoveg, 1);
TextDrawSetShadow(IdoSzoveg, 1);
CPSzoveg = TextDrawCreate(497.000000, 307.000000, \"CP:\");
TextDrawBackgroundColor(CPSzoveg, 255);
TextDrawFont(CPSzoveg, 1);
TextDrawLetterSize(CPSzoveg, 0.430000, 1.200000);
TextDrawColor(CPSzoveg, -1);
TextDrawSetOutline(CPSzoveg, 0);
TextDrawSetProportional(CPSzoveg, 1);
TextDrawSetShadow(CPSzoveg, 1);
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
Helyezes[playerid] = CreatePlayerTextDraw(playerid,564.000000, 279.000000, \"100\");
PlayerTextDrawBackgroundColor(playerid,Helyezes[playerid], 255);
PlayerTextDrawFont(playerid,Helyezes[playerid], 1);
PlayerTextDrawLetterSize(playerid,Helyezes[playerid], 0.430000, 1.200000);
PlayerTextDrawColor(playerid,Helyezes[playerid], -7012097);
PlayerTextDrawSetOutline(playerid,Helyezes[playerid], 0);
PlayerTextDrawSetProportional(playerid,Helyezes[playerid], 1);
PlayerTextDrawSetShadow(playerid,Helyezes[playerid], 1);
Ido[playerid] = CreatePlayerTextDraw(playerid,575.000000, 293.000000, \"10:59\");
PlayerTextDrawAlignment(playerid,Ido[playerid], 3);
PlayerTextDrawBackgroundColor(playerid,Ido[playerid], 255);
PlayerTextDrawFont(playerid,Ido[playerid], 1);
PlayerTextDrawLetterSize(playerid,Ido[playerid], 0.430000, 1.200000);
PlayerTextDrawColor(playerid,Ido[playerid], -7012097);
PlayerTextDrawSetOutline(playerid,Ido[playerid], 0);
PlayerTextDrawSetProportional(playerid,Ido[playerid], 1);
PlayerTextDrawSetShadow(playerid,Ido[playerid], 1);
CP[playerid] = CreatePlayerTextDraw(playerid,570.000000, 307.000000, \"100/10\");
PlayerTextDrawAlignment(playerid,CP[playerid], 3);
PlayerTextDrawBackgroundColor(playerid,CP[playerid], 255);
PlayerTextDrawFont(playerid,CP[playerid], 1);
PlayerTextDrawLetterSize(playerid,CP[playerid], 0.430000, 1.200000);
PlayerTextDrawColor(playerid,CP[playerid], -7012097);
PlayerTextDrawSetOutline(playerid,CP[playerid], 0);
PlayerTextDrawSetProportional(playerid,CP[playerid], 1);
PlayerTextDrawSetShadow(playerid,CP[playerid], 1);
}
return 1;
}
public UpdateHelyezes()
{
if(!RaceStarted)return 0;
PlayersInRace = 0;
for(new i; i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && PlayerOutRace == 1)PlayersInRace++;
if(IsPlayerConnected(i) && PlayerInRace == 1)PlayerTextDrawSetString(i,Ido,TimeConvert(RaceTimeer));
}
for(new i; i<MAX_PLAYERS;i++)
{
    if(IsPlayerConnected(i) && PlayerInRace == 1)
    {
    if(PlayersInRace == 1)
   {
      RaceHelyezes = 1;
      PlayerTextDrawSetString(i,Helyezes, Valstr(RaceHelyezes));
       break;
    }
   RaceHelyezes=PlayersInRace;
    for(new z; z < MAX_PLAYERS; z++)
   {
       if(IsPlayerConnected(z) && PlayerOutRace[z] == 1 && i != z)
       {
          if(RaceCPs > RaceCPs[z])RaceHelyezes--;
          else if(RaceCPs == RaceCPs[z])
          {
              new Float:pcps[2];
            pcps[0] = GetPlayerDistanceFromPoint(i,TheRaceCP[RaceCPs+1][0],TheRaceCP[RaceCPs+1][1],TheRaceCP[RaceCPs+1][2]);
            pcps[1] = GetPlayerDistanceFromPoint(z,TheRaceCP[RaceCPs[z]+1][0],TheRaceCP[RaceCPs[z]+1][1],TheRaceCP[RaceCPs[z]+1][2]);
            if(pcps[0] < pcps[1])RaceHelyezes--;
         }
      }
   }
   if(RaceHelyezes == 0)RaceHelyezes = PlayersInRace;
   PlayerTextDrawSetString(i,Helyezes, Valstr(RaceHelyezes));
}
}
return 1;
}
stock HelyezesConvert(asd)
{
new string[100];
format(string,100,\"%d/%d\",asd,PlayersInRace);
return string;
}
stock Valstr(val)
{
new string[100];
valstr(string,val);
return string;
}
public DelRace()
{
InRace             = false;
RaceStarted       = false;
RaceCountdown       = 20;
PlayersOutRace       = 0;
PlayersInRace       = 0;
RaceFinal          = 1;
RaceTimeer          = 0;
KillTimer(RaceTimeTimerTick);
KillTimer(RaceCountTick);
for(new i = 0;i < MAX_PLAYERS;i++)
{
    PlayerOutRace = 0;
    if(PlayerInRace == 1)
    {
   PlayerInRace = 0;
   RaceCPs      = 0;
   SendClientMessage(i,red,\"Vége a versenynek\");
   DisablePlayerRaceCheckpoint(i);
    }
}
return 1;
}
public RaceCount()
{
if(RaceCountdown >= 1 && RaceStarted == false)
{
      RaceCountdown--;
}
if(RaceCountdown == 0)
    {
RaceStarted = true;
StartPlayersInRace = GetPlayersInRace();
KillTimer(RaceCountTick);
RaceTimeTimerTick = SetTimer(\"RaceTimeTimer\", 1000, 1);
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(PlayerInRace == 1 && InRace == true)
    {
        if(RaceCountdown >= 1)
        {
        new str[200];
        format(str,sizeof(str),\"Start: %d\",RaceCountdown);
        GameTextForPlayer(i,str,1000,3);
        if(RaceCountdown == 5) TogglePlayerControllable(i,0);
   }
        if(RaceCountdown == 0)
        {
        new str[200];
        format(str,sizeof(str),\"!!GO!GO!GO!!\",RaceCountdown);
      PlayersOutRace++;
        GameTextForPlayer(i,str,3000,3);
        TogglePlayerControllable(i,1);
        if(IsPlayerInRaceCheckpoint(i))
        {
            OnPlayerEnterRaceCheckpoint(i);
        }
   }
}
}
}
public RaceTimeTimer()
{
if(RaceTimeer <= CurrentRaceMax-1 && RaceStarted == true)
{
      RaceTimeer++;
UpdateHelyezes();
}
    if(RaceTimeer == CurrentRaceMax)
    {
DelRace();
KillTimer(RaceTimeTimerTick);
}
}
stock CPConvert(asd)
{
new string[100];
format(string,100,\"%d/%d\",asd,MaxCPs);
return string;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
    if(RaceStarted == true)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) != CurrentRaceCar)return 0;
        PlayerTextDrawSetString(playerid,CP[playerid],CPConvert(RaceCPs[playerid]+1));
       if(RaceCPs[playerid] < MaxCPs-2)
{
    DisablePlayerRaceCheckpoint(playerid);
   RaceCPs[playerid]++;
   SetPlayerRaceCheckpoint(playerid, 0, TheRaceCP[RaceCPs[playerid]][0], TheRaceCP[RaceCPs[playerid]][1], TheRaceCP[RaceCPs[playerid]][2], TheRaceCP[RaceCPs[playerid]+1][0], TheRaceCP[RaceCPs[playerid]+1][1], TheRaceCP[RaceCPs[playerid]+1][2], 16.0);
}
else if(RaceCPs[playerid] == MaxCPs-2)
{
    DisablePlayerRaceCheckpoint(playerid);
   RaceCPs[playerid]++;
   SetPlayerRaceCheckpoint(playerid, 1, TheRaceCP[RaceCPs[playerid]][0], TheRaceCP[RaceCPs[playerid]][1], TheRaceCP[RaceCPs[playerid]][2], 0.0, 0.0, 0.0, 16.0);
}
    else if(RaceCPs[playerid] == MaxCPs-1)
{
    DisablePlayerRaceCheckpoint(playerid);
    WinCost[0] = 6600 * StartPlayersInRace;
   WinCost[1] = 5600 * StartPlayersInRace;
   WinCost[2] = 4600 * StartPlayersInRace;
   WinCost[3] = 2900 * StartPlayersInRace;
   WinCost[4] = 1900 * StartPlayersInRace;
    new str[200],WinX;
    switch(RaceFinal)
    {
        case 1:
        {
         GivePlayerMoney(playerid,WinCost[0]);
         WinX = WinCost[0];
        }
        case 2:
        {
         GivePlayerMoney(playerid,WinCost[0]);
         WinX = WinCost[1];
        }
        case 3:
        {
         GivePlayerMoney(playerid,WinCost[0]);
         WinX = WinCost[2];
        }
        case 4:
        {
         GivePlayerMoney(playerid,WinCost[0]);
         WinX = WinCost[3];
        }
        case 5:
        {
         GivePlayerMoney(playerid,WinCost[0]);
         WinX = WinCost[4];
        }
        default:
        {
         WinX = 0;
        }
    }
   if(PlayersOutRace == 1)WinX = 0;
   Format(str, \"%s beért a célba | Idõ: %s | helyezés: %d/%d | nyeremény: %d$\",pName(playerid),TimeConvert(RaceTimeer),RaceFinal,PlayersOutRace,WinX);
   SendClientMessageToAll(orange,str);
   if(RaceTimeer < RekorderTime)
   {
       WinX = WinCost[0];
       RekorderTime = RaceTimeer;
      FormatTo(Rekorder,pName(playerid));
       SaveRace(CurrentRace);
                Format(str, \"%s rekord idõt ment a \\\"%s\\\" versenyen | Idõ: %s | Jutalom: %d$\",pName(playerid),CurrentRaceName,TimeConvert(RaceTimeer),floatround(WinX*0.40));
      SendClientMessageToAll(orange,str);
   }
   RaceCPs[playerid] = 0;
   RaceFinal++;
   PlayerInRace[playerid] = false;
   SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),0);
   SetPlayerVirtualWorld(playerid,0);
   if(GetPlayersInRace() == 0)DelRace();
   TextDrawHideForPlayer(playerid, HelyezesSzoveg);
   TextDrawHideForPlayer(playerid, IdoSzoveg);
   TextDrawHideForPlayer(playerid, CPSzoveg);
   TextDrawHideForPlayer(playerid, RaceHatter);
   PlayerTextDrawHide(playerid, Helyezes[playerid]);
   PlayerTextDrawHide(playerid, Ido[playerid]);
   PlayerTextDrawHide(playerid, CP[playerid]);
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1991)
{
if(response)
{
    if(RaceStarted == false && InRace == false)
    {
      CurrentRace = listitem;
      StartRace(CurrentRace);
       PlayerInRace[playerid] = 1;
       PlayerOutRace[playerid] = 1;
      RaceCPs[playerid] = 0;
      SetPlayerRaceCheckpoint(playerid, 0, TheRaceCP[RaceCPs[playerid]][0], TheRaceCP[RaceCPs[playerid]][1], TheRaceCP[RaceCPs[playerid]][2], TheRaceCP[RaceCPs[playerid]+1][0], TheRaceCP[RaceCPs[playerid]+1][1], TheRaceCP[RaceCPs[playerid]+1][2], 16.0);
      InRace = true;
      SetPlayerPos(playerid,xyzpos[0],xyzpos[1],xyzpos[2]);
      RaceCountTick = SetTimer(\"RaceCount\", 1000, 1);
      SetPlayerVirtualWorld(playerid,1221);
      TextDrawShowForPlayer(playerid, HelyezesSzoveg);
      TextDrawShowForPlayer(playerid, IdoSzoveg);
      TextDrawShowForPlayer(playerid, CPSzoveg);
      TextDrawShowForPlayer(playerid, RaceHatter);
      PlayerTextDrawShow(playerid, Helyezes[playerid]);
      PlayerTextDrawShow(playerid, Ido[playerid]);
      PlayerTextDrawShow(playerid, CP[playerid]);
      format(CurrentRaceName,50,inputtext);
   }
   else return SendClientMessage(playerid,red,\"A verseny már elkezdõdött!\");
}
}
return 1;
}
CMD:races(playerid)
{
if(InRace == false)
{
new allraces[] = \"Infernus speed one\\nDrag\\nLos Santos Race\\nSan Fierro Race\\nGray Asphalt\\nTruck Race\\nBig Race\\nCanal Washing\";
ShowPlayerDialog(playerid, 1991, DIALOG_STYLE_LIST, \"Versenyek\", allraces, \"Kiválaszt\", \"Kilép\");
}
else return SendClientMessage(playerid,red,\"Már megy egy verseny!\");
return 1;
}
CMD:race(playerid)
{
if(InRace == true && RaceStarted == false)
{
if(PlayerInRace[playerid] == 0)
{
   SetPlayerVirtualWorld(playerid, 1221);
   SetPlayerRaceCheckpoint(playerid, 0, TheRaceCP[RaceCPs[playerid]][0], TheRaceCP[RaceCPs[playerid]][1], TheRaceCP[RaceCPs[playerid]][2], TheRaceCP[RaceCPs[playerid]+1][0], TheRaceCP[RaceCPs[playerid]+1][1], TheRaceCP[RaceCPs[playerid]+1][2], 16.0);
            SetPlayerPos(playerid,xyzpos[0],xyzpos[1],xyzpos[2]);
   RaceCPs[playerid] = 0;
   PlayerInRace[playerid] = 1;
   PlayerOutRace[playerid] = 1;
   new str[200];
   format(str,sizeof(str),\"Csatlakoztál a(z) %s versenyhez.\",CurrentRaceName);
   SendClientMessage(playerid,orange,str);
   TextDrawShowForPlayer(playerid, HelyezesSzoveg);
   TextDrawShowForPlayer(playerid, IdoSzoveg);
   TextDrawShowForPlayer(playerid, CPSzoveg);
   TextDrawShowForPlayer(playerid, RaceHatter);
   PlayerTextDrawShow(playerid, Helyezes[playerid]);
   PlayerTextDrawShow(playerid, Ido[playerid]);
   PlayerTextDrawShow(playerid, CP[playerid]);
}
else return SendClientMessage(playerid,red,\"Te már versenyben vagy!\");
}
else return SendClientMessage(playerid,red,\"Jelenleg nincs verseny vagy már elkezdõdött\");
return 1;
}
 
public OnPlayerConnect(playerid)
{
Helyezes[playerid] = CreatePlayerTextDraw(playerid,564.000000, 279.000000, \"100\");
PlayerTextDrawBackgroundColor(playerid,Helyezes[playerid], 255);
PlayerTextDrawFont(playerid,Helyezes[playerid], 1);
PlayerTextDrawLetterSize(playerid,Helyezes[playerid], 0.430000, 1.200000);
PlayerTextDrawColor(playerid,Helyezes[playerid], -1);
PlayerTextDrawSetOutline(playerid,Helyezes[playerid], 0);
PlayerTextDrawSetProportional(playerid,Helyezes[playerid], 1);
PlayerTextDrawSetShadow(playerid,Helyezes[playerid], 1);
Ido[playerid] = CreatePlayerTextDraw(playerid,575.000000, 293.000000, \"10:59\");
PlayerTextDrawAlignment(playerid,Ido[playerid], 3);
PlayerTextDrawBackgroundColor(playerid,Ido[playerid], 255);
PlayerTextDrawFont(playerid,Ido[playerid], 1);
PlayerTextDrawLetterSize(playerid,Ido[playerid], 0.430000, 1.200000);
PlayerTextDrawColor(playerid,Ido[playerid], -1);
PlayerTextDrawSetOutline(playerid,Ido[playerid], 0);
PlayerTextDrawSetProportional(playerid,Ido[playerid], 1);
PlayerTextDrawSetShadow(playerid,Ido[playerid], 1);
CP[playerid] = CreatePlayerTextDraw(playerid,570.000000, 307.000000, \"100/10\");
PlayerTextDrawAlignment(playerid,CP[playerid], 3);
PlayerTextDrawBackgroundColor(playerid,CP[playerid], 255);
PlayerTextDrawFont(playerid,CP[playerid], 1);
PlayerTextDrawLetterSize(playerid,CP[playerid], 0.430000, 1.200000);
PlayerTextDrawColor(playerid,CP[playerid], -1);
PlayerTextDrawSetOutline(playerid,CP[playerid], 0);
PlayerTextDrawSetProportional(playerid,CP[playerid], 1);
PlayerTextDrawSetShadow(playerid,CP[playerid], 1);
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{
if(PlayerInRace[playerid]==1)cmd_exitrace(playerid);
return 1;
}
public OnPlayerDeath(playerid,killerid,reason)
{
if(PlayerInRace[playerid]==1)cmd_exitrace(playerid);
return 1;
}
CMD:exitrace(playerid)
{
if(PlayerInRace[playerid] == 1 && InRace == true)
{
PlayerInRace[playerid] = 0;
SendClientMessage(playerid,red,\"Kiestél a versenybõl\");
DisablePlayerRaceCheckpoint(playerid);
if(GetPlayersInRace() == 0)return DelRace();
TextDrawHideForPlayer(playerid, HelyezesSzoveg);
TextDrawHideForPlayer(playerid, IdoSzoveg);
TextDrawHideForPlayer(playerid, CPSzoveg);
TextDrawHideForPlayer(playerid, RaceHatter);
PlayerTextDrawHide(playerid, Helyezes[playerid]);
PlayerTextDrawHide(playerid, Ido[playerid]);
PlayerTextDrawHide(playerid, CP[playerid]);
}
else return SendClientMessage(playerid,red,\"Nem vagy versenyben!\");
return 1;
}
stock TimeConvert(time)
{
    new minutes;
    new seconds;
    new string[128];
    if(time > 59)
{
        minutes = floatround(time/60);
        seconds = floatround(time - minutes*60);
        if(seconds>9)format(string,sizeof(string),\"%d:%d\",minutes,seconds);
        else format(string,sizeof(string),\"%d:0%d\",minutes,seconds);
    }
    else
{
        seconds = floatround(time);
        if(seconds>9)format(string,sizeof(string),\"0:%d\",seconds);
        else format(string,sizeof(string),\"0:0%d\",seconds);
    }
    return string;
}
stock StartRace(raceid)
{
    new string[200], string2[200];
    format(string,sizeof(string),\"scriptfiles/race%d.ini\",raceid);
    if(!file_exists(string))return 0;
    new File:example = f_open(string);
    new count = 0;
    while(f_read(example, string, sizeof(string)))
    {
if(count == 0)format(string2,sizeof(string2),\"Elindult a(z) \\\"%s\\\" verseny, csatlakozni a /race paranccsal lehet.\",string);
else if(count == 1)MaxCPs = strval(string);
else if(count == 2)CurrentRaceMax = strval(string);
else if(count == 3)CurrentRaceCar = strval(string);
else if(count == 4)FormatTo(Rekorder,string);
else if(count == 5)RekorderTime = strval(string);
else if(count == 6)
{
    sscanf(string,\"p<,>fff\",xyzpos[0],xyzpos[1],xyzpos[2]);
}
else if(count > 6)
{
    sscanf(string,\"p<,>fff\",TheRaceCP[count-7][0],TheRaceCP[count-7][1],TheRaceCP[count-7][2]);
}
count++;
    }
SendClientMessageToAll(orange,string);
format(string,sizeof(string),\"CheckPointok: %d, Jármû: /v %d, Versenyidõ: %s, Rekorder: %s, Rekordidõ: %s\",MaxCPs,CurrentRaceCar,TimeConvert(CurrentRaceMax),Rekorder,TimeConvert(RekorderTime));
SendClientMessageToAll(orange,string);
f_close(example);
    return 1;
}
stock GetPlayersInRace()
{
new count;
for(new i; i<MAX_PLAYERS;i++)if(IsPlayerConnected(i) && PlayerInRace == 1) count++;
return count;
}
stock SaveRace(raceid)
{
    new string[2000],example[100];
    format(example,sizeof(example),\"scriptfiles/race%d.ini\",raceid);
    if(!file_exists(example))return file_create(example);
    file_delete(example);
//    new File:example = fopen(string, io_write);
format(string,sizeof(string),\"%s\\r\\n\",CurrentRaceName);
file_write(example,string);
format(string,sizeof(string),\"%d\\r\\n\",MaxCPs);
file_write(example,string);
format(string,sizeof(string),\"%d\\r\\n\",CurrentRaceMax);
file_write(example,string);
format(string,sizeof(string),\"%d\\r\\n\",CurrentRaceCar);
file_write(example,string);
format(string,sizeof(string),\"%s\\r\\n\",Rekorder);
file_write(example,string);
format(string,sizeof(string),\"%d\\r\\n\",RekorderTime);
file_write(example,string);
format(string,sizeof(string),\"%f,%f,%f\\r\\n\",xyzpos[0],xyzpos[1],xyzpos[2]);
file_write(example,string);
for(new i; i < MaxCPs; i++)
{
if(i == MaxCPs-1)
{
         format(string,sizeof(string),\"%f,%f,%f\",TheRaceCP[0],TheRaceCP[1],TheRaceCP[2]);
   file_write(example,string);
   break;
}
format(string,sizeof(string),\"%f,%f,%f\\r\\n\",TheRaceCP[0],TheRaceCP[1],TheRaceCP[2]);
file_write(example,string);
}
//   fclose(example);
return 1;
}
stock pName(playerid)
{
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid,plname,MAX_PLAYER_NAME);
return plname;
}

36
Segítségkérés / 2-nél több oldalas menü készítése vagy dialog
« Dátum: 2013. május 13. - 20:25:26 »
Nem értem értem a kérdést úgy szeretnéd hogy :   amikor   csatlakozik a versenybe akkor elõhoz egy dialogot amibõl ki tud választani egy kocsit???

37
Segítségkérés / Hiba
« Dátum: 2013. május 13. - 19:59:04 »
Hmm egy minigamen dolgozom de hogy ennek mi a fene baja van
Error:
 
C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\_tc\\minigame.pwn(390) : error 017: undefined symbol \"Format\"
C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\_tc\\minigame.pwn(390) : error 017: undefined symbol \"Name\"
C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\_tc\\minigame.pwn(390) : error 029: invalid expression, assumed zero
C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\_tc\\minigame.pwn(390) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
4 Errors.

 
Ott van az a rész ami hibás
 
public OnPlayerDeath(playerid)
{
if(PlayerInMini[playerid] == true)
{
    Format(globalstr,\"%s kiesett a játékból!\"Name(playerid));
for(new z; z < MAX_PLAYERS; z++)
{
   if(PlayerInMini[z] == true)
   {
       SendClientMessage(z,-1,globalstr);
   }
}
SpecSpawn[playerid] = true;
PlayersInMap--;
}
}

 
Abból igazából csak ez   
 
  Format(globalstr,\"%s kiesett a játékból!\"Name(playerid));

38
SA-MP: Szerverfejlesztés / Lakatlan sziget
« Dátum: 2013. május 12. - 18:16:10 »
Képek alapján szép

39
SA-MP: Szerverfejlesztés / Free Game Mode
« Dátum: 2013. május 11. - 09:53:48 »
Idézetet írta: ZzzzzZ date=1368258705\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"37199\" data-ipsquote-contentclass=\"forums_Topic
Ha az elsõ játékmódod akkor csak annyit tudok mondani hogy jó lett.
 
Nem az elsõ, írtam már elõtte modokat csak akkor még nem publikáltam
Elég gyenge kis mod  de kezdõknek hasznára válik.
UI: kösz

40
SA-MP: Szerverfejlesztés / Free Game Mode
« Dátum: 2013. május 11. - 09:31:27 »
Idézetet írta: predam2 date=1368257415\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"37199\" data-ipsquote-contentclass=\"forums_Topic
Szép lett! nagyon jó gamemode! Csak ajánlani tudom!
 
Köszönöm

41
SA-MP: Szerverfejlesztés / Free Game Mode
« Dátum: 2013. május 11. - 09:27:35 »
Üdv, Nos készítettem egy Game Mode-t ami nem nagy de valakinek biztos hogy hasznára válik.
Tartalom:
/fight
/radio
/cmds
/teles
Jármû:
/lock
/unlock
/carjump
/carjumpoff
Teleportok:
/ch=Chilliad
/katonasag
/rend
/fb
/stunt
/jizzy
/ls
/lv
/sf
/sf-air
/lv-air
/ls-air
Egyéb:
/jump
/jump2
/drift
Képek:
\"width=500http://kepfeltoltes.hu/130511/427631265sa-mp-018_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130511/673285098sa-mp-019_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130511/866493000sa-mp-020_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130511/940190652sa-mp-021_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130511/15839068sa-mp-023_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130511/1217175875sa-mp-024_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130511/259857985sa-mp-025_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130511/80354805sa-mp-026_www.kepfeltoltes.hu_.png[/img]
mod:
 
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#pragma tabsize 0
#define COLOR_SÁRGA 0xfff700AA
#define COLOR_PIROS 0xff0000AA
#define COLOR_KÉK 0x2b00ffAA
#define COLOR_ZÖLD 0x1eff00AA
#define COLOR_NARANCS 0xff7b00A
#define COLOR_FEHÉR 0xffffffAA
#define COLOR_SZÜRKE 0x858482AA
#define COLOR_FEKETE 0x000000AA
#define COLOR_BLUE 0x33CCFFAA
#define COLOR_YELLOW 0xFFFF00AA
#define DIALOG_FIGHT 1246
#define DIALOG_A 1248
#define DIALOG_J 1249
#define DIALOG_CMDS 2345
//COUNT===============
new Count = 5;
new CountText[5][5] ={
\"~r~1\",
\"~r~2\",
\"~r~3\",
\"~b~4\",
\"~b~5\"
};
//Random_Spawn===============
new Float:RandomSpawn[9][3] =
{
{},
{2162.7043,1078.2765,10.8076},
{2110.3743,1006.3901,10.9990},
{1242.5153,328.5576,19.7555},
{-1572.9589,657.9769,7.1875},
{-1618.0706,699.4272,-4.9063},
{-1528.4049,411.8047,7.1875},
{309.5623,2539.8877,16.8154},
{2098.5378,2214.5779,10.8203}
};
 
forward CountDown();
 
new SpawnedVehicles[MAX_PLAYERS];
new VehicleNames[212][] = {
{\"Landstalker\"},{\"Bravura\"},{\"Buffalo\"},{\"Linerunner\"},{\"Perrenial\"},{\"Sentinel\"},{\"Dumper\"},
{\"Firetruck\"},{\"Trashmaster\"},{\"Stretch\"},{\"Manana\"},{\"Infernus\"},{\"Voodoo\"},{\"Pony\"},{\"Mule\"},
{\"Cheetah\"},{\"Ambulance\"},{\"Leviathan\"},{\"Moonbeam\"},{\"Esperanto\"},{\"Taxi\"},{\"Washington\"},
{\"Bobcat\"},{\"Mr Whoopee\"},{\"BF Injection\"},{\"a5s4f56as4da\"},{\"Premier\"},{\"Enforcer\"},{\"Securicar\"},
{\"Banshee\"},{\"Predator\"},{\"Bus\"},{\"sad5dsa46d\"},{\"Barracks\"},{\"Hotknife\"},{\"Trailer 1\"},{\"Previon\"},
{\"Coach\"},{\"Cabbie\"},{\"Stallion\"},{\"Rumpo\"},{\"RC Bandit\"},{\"Romero\"},{\"Packer\"},{\"Monster\"},
{\"Admiral\"},{\"Squalo\"},{\"sadas44d6\"},{\"Pizzaboy\"},{\"Tram\"},{\"Trailer 2\"},{\"Turismo\"},
{\"Speeder\"},{\"Reefer\"},{\"Tropic\"},{\"Flatbed\"},{\"Yankee\"},{\"Caddy\"},{\"Solair\"},{\"Berkley\'s RC Van\"},
{\"Skimmer\"},{\"PCJ-600\"},{\"Faggio\"},{\"Freeway\"},{\"RC Baron\"},{\"RC Raider\"},{\"Glendale\"},{\"Oceanic\"},
{\"Sanchez\"},{\"Sparrow\"},{\"Patriot\"},{\"Quad\"},{\"Coastguard\"},{\"Dinghy\"},{\"Hermes\"},{\"Sabre\"},
{\"Rustler\"},{\"ZR-350\"},{\"Walton\"},{\"Regina\"},{\"Comet\"},{\"BMX\"},{\"Burrito\"},{\"Camper\"},{\"Marquis\"},
{\"Baggage\"},{\"Dozer\"},{\"Maverick\"},{\"News Chopper\"},{\"Rancher\"},{\"FBI Rancher\"},{\"Virgo\"},{\"Greenwood\"},
{\"Jetmax\"},{\"Hotring\"},{\"Sandking\"},{\"Blista Compact\"},{\"Police Maverick\"},{\"Boxville\"},{\"Benson\"},
{\"Mesa\"},{\"RC Goblin\"},{\"Hotring Racer A\"},{\"Hotring Racer B\"},{\"Bloodring Banger\"},{\"Rancher\"},
{\"Super GT\"},{\"Elegant\"},{\"Journey\"},{\"Bike\"},{\"Mountain Bike\"},{\"Beagle\"},{\"Cropdust\"},{\"Stunt\"},
{\"Tanker\"}, {\"Roadtrain\"},{\"Nebula\"},{\"Majestic\"},{\"Buccaneer\"},{\"Shamal\"},{\"5a4s5as4f\"},{\"FCR-900\"},
{\"NRG-500\"},{\"HPV1000\"},{\"Cement Truck\"},{\"Tow Truck\"},{\"Fortune\"},{\"Cadrona\"},{\"FBI Truck\"},
{\"Willard\"},{\"Forklift\"},{\"Tractor\"},{\"Combine\"},{\"Feltzer\"},{\"Remington\"},{\"Slamvan\"},
{\"Blade\"},{\"Freight\"},{\"Streak\"},{\"Vortex\"},{\"Vincent\"},{\"Bullet\"},{\"Clover\"},{\"Sadler\"},
{\"Firetruck LA\"},{\"Hustler\"},{\"Intruder\"},{\"Primo\"},{\"Cargobob\"},{\"Tampa\"},{\"Sunrise\"},{\"Merit\"},
{\"Utility\"},{\"Nevada\"},{\"Yosemite\"},{\"Windsor\"},{\"Monster A\"},{\"Monster B\"},{\"Uranus\"},{\"Jester\"},
{\"Sultan\"},{\"Stratum\"},{\"Elegy\"},{\"Raindance\"},{\"RC Tiger\"},{\"Flash\"},{\"Tahoma\"},{\"Savanna\"},
{\"Bandito\"},{\"Freight Flat\"},{\"Streak Carriage\"},{\"Kart\"},{\"Mower\"},{\"Duneride\"},{\"Sweeper\"},
{\"Broadway\"},{\"Tornado\"},{\"AT-400\"},{\"DFT-30\"},{\"Huntley\"},{\"Stafford\"},{\"BF-400\"},{\"Newsvan\"},
{\"Tug\"},{\"Trailer 3\"},{\"Emperor\"},{\"Wayfarer\"},{\"Euros\"},{\"Hotdog\"},{\"Club\"},{\"Freight Carriage\"},
{\"Trailer 3\"},{\"Andromada\"},{\"Dodo\"},{\"RC Cam\"},{\"Launch\"},{\"Police Car (LSPD)\"},{\"Police Car (SFPD)\"},
{\"Police Car (LVPD)\"},{\"Police Ranger\"},{\"Picador\"},{\"S.W.A.T. Van\"},{\"Alpha\"},{\"Phoenix\"},{\"Glendale\"},
{\"Sadler\"},{\"Luggage Trailer A\"},{\"Luggage Trailer B\"},{\"Stair Trailer\"},{\"Boxville\"},{\"Farm Plow\"},
{\"Utility Trailer\"}
};
forward VehicleOccupied(vehicleid);
forward SetPlayerRandomSpawn(playerid);
#if defined FILTERSCRIPT
 
public OnFilterScriptInit()
{
print(\"\\n**************************\");
print(\"[HUN..:::Free Stunt Mod:::..\");
print(\"**************************\\n\");
pmeng = true;
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n**************************\");
print(\"[HUN..:::Free Stunt Mod:::..\");
print(\"**************************\\n\");
}
#endif
 
public OnGameModeInit()
{
SetGameModeText(\"[HUN]Minigame/Race/Dm\");
UsePlayerPedAnims();
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(2, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(3, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(4, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(5, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(6, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(8, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(9, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(10, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(11, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(12, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(13, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(14, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(15, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(16, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(17, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(18, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(19, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(20, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//=====================================================================================
//=====================================================================================
//*******************************jármûvek**********************************************
AddStaticVehicleEx(584,-537.2000100,-499.7999900,27.5000000,0.0000000,245,245,15); //Trailer 3
AddStaticVehicleEx(584,-543.9000200,-499.3999900,27.5000000,0.0000000,245,245,15); //Trailer 3
AddStaticVehicleEx(435,-567.2000100,-472.7000100,27.0000000,180.0000000,245,245,15); //Trailer 1
AddStaticVehicleEx(435,-559.7999900,-474.2000100,27.0000000,180.0000000,245,245,15); //Trailer 1
AddStaticVehicleEx(403,-612.7999900,-486.0000000,26.2000000,270.0000000,61,74,15); //Linerunner
AddStaticVehicleEx(403,-613.4000200,-477.5000000,26.2000000,270.0000000,61,74,15); //Linerunner
AddStaticVehicleEx(403,-613.2999900,-493.8999900,26.2000000,270.0000000,61,74,15); //Linerunner
AddStaticVehicleEx(515,-582.7999900,-498.1000100,26.7000000,0.0000000,102,28,15); //Roadtrain
AddStaticVehicleEx(515,-576.2999900,-498.0000000,26.7000000,0.0000000,102,28,15); //Roadtrain
AddStaticVehicleEx(515,-569.0000000,-497.8999900,26.7000000,0.0000000,102,28,15); //Roadtrain
AddStaticVehicleEx(435,-519.4000200,-475.8999900,26.7000000,180.0000000,245,245,15); //Trailer 1
AddStaticVehicleEx(435,-528.4000200,-475.7999900,26.7000000,180.0000000,245,245,15); //Trailer 1
AddStaticVehicleEx(530,-520.5000000,-499.2000100,26.0000000,0.0000000,68,98,15); //Forklift
AddStaticVehicleEx(530,-529.4000200,-499.3999900,26.0000000,0.0000000,68,98,15); //Forklift
AddStaticVehicleEx(476,-1636.1999500,-259.5000000,16.3000000,12.0000000,170,157,15); //Rustler
AddStaticVehicleEx(476,-1653.0000000,-263.8999900,16.3000000,11.9970000,170,157,15); //Rustler
AddStaticVehicleEx(476,-1670.0999800,-264.3999900,16.3000000,351.9970000,170,157,15); //Rustler
AddStaticVehicleEx(476,-1685.9000200,-259.6000100,16.3000000,331.9960000,170,157,15); //Rustler
AddStaticVehicleEx(476,-1699.8000500,-247.3999900,16.3000000,311.9960000,170,157,15); //Rustler
AddStaticVehicleEx(519,-1478.0000000,-183.8000000,15.1000000,42.0000000,245,245,15); //Shamal
AddStaticVehicleEx(519,-1462.1999500,-157.3000000,15.1000000,43.9950000,245,245,15); //Shamal
AddStaticVehicleEx(485,-1516.0000000,-179.6000100,14.3000000,48.0000000,245,245,15); //Baggage
AddStaticVehicleEx(485,-1520.6999500,-184.8999900,14.3000000,47.9990000,245,245,15); //Baggage
AddStaticVehicleEx(485,-1435.0999800,-134.0000000,14.6000000,47.9990000,245,245,15); //Baggage
AddStaticVehicleEx(556,-1549.3000500,-213.3000000,15.1000000,49.0000000,245,245,15); //Monster A
AddStaticVehicleEx(556,-1554.8000500,-218.8000000,15.6000000,48.9990000,245,245,15); //Monster A
AddStaticVehicleEx(411,-1534.0000000,-199.8000000,15.2000000,70.0000000,114,42,15); //Infernus
AddStaticVehicleEx(411,-1530.8000500,-195.2000000,15.2000000,69.9980000,114,42,15); //Infernus
AddStaticVehicleEx(411,-1527.3000500,-190.5000000,15.2000000,79.9980000,114,42,15); //Infernus
AddStaticVehicleEx(476,-1704.4000200,-231.6000100,16.3000000,291.9950000,170,157,15); //Rustler
AddStaticVehicleEx(411,-2033.6999500,170.5000000,29.1000000,270.0000000,32,32,15); //Infernus
AddStaticVehicleEx(411,-2033.3000500,177.6000100,29.1000000,270.0000000,32,32,15); //Infernus
AddStaticVehicleEx(429,-1922.1999500,244.3000000,41.1000000,0.0000000,245,245,15); //Banshee
AddStaticVehicleEx(429,-1925.6999500,244.2000000,41.1000000,0.0000000,245,245,15); //Banshee
AddStaticVehicleEx(429,-1929.9000200,244.1000100,41.1000000,0.0000000,245,245,15); //Banshee
AddStaticVehicleEx(541,-1927.9000200,273.8999900,41.7000000,182.0000000,37,37,15); //Bullet
AddStaticVehicleEx(541,-1935.6999500,274.2000100,41.7000000,182.0000000,37,37,15); //Bullet
AddStaticVehicleEx(555,-1947.0000000,267.2000100,40.8000000,132.0000000,42,119,15); //Windsor
AddStaticVehicleEx(555,-1947.3000500,260.2999900,40.8000000,131.9950000,42,119,15); //Windsor
AddStaticVehicleEx(558,-1897.3000500,243.5000000,41.4000000,357.0000000,89,110,15); //Uranus
AddStaticVehicleEx(559,-1984.6999500,271.2000100,34.9000000,268.0000000,170,173,15); //Jester
AddStaticVehicleEx(559,-1986.1999500,265.6000100,34.9000000,255.9990000,170,173,15); //Jester
AddStaticVehicleEx(560,-1987.0999800,257.5000000,35.0000000,264.0000000,94,112,15); //Sultan
AddStaticVehicleEx(560,-1988.3000500,253.5000000,35.0000000,263.9960000,94,112,15); //Sultan
AddStaticVehicleEx(560,-1989.0000000,249.2000000,35.0000000,263.9960000,94,112,15); //Sultan
AddStaticVehicleEx(524,-2038.5000000,283.7999900,36.8000000,224.0000000,30,46,15); //Cement Truck
AddStaticVehicleEx(524,-2047.5000000,279.5000000,36.8000000,223.9950000,30,46,15); //Cement Truck
AddStaticVehicleEx(417,-1951.3000500,281.3999900,49.8000000,218.0000000,-1,-1,15); //Leviathan
AddStaticVehicleEx(407,-2021.8000500,75.0000000,28.7000000,274.0000000,132,4,15); //Firetruck
AddStaticVehicleEx(407,-2020.1999500,83.3000000,29.7000000,267.9990000,132,4,15); //Firetruck
AddStaticVehicleEx(544,-2016.5000000,91.7000000,29.1000000,270.0000000,132,4,15); //Firetruck LA
AddStaticVehicleEx(603,-2051.6001000,14.5000000,35.8000000,0.0000000,123,10,15); //Phoenix
AddStaticVehicleEx(603,-2055.0000000,15.3000000,35.8000000,0.0000000,123,10,15); //Phoenix
AddStaticVehicleEx(603,-2059.6001000,16.3000000,35.8000000,0.0000000,123,10,15); //Phoenix
AddStaticVehicleEx(401,-2064.5000000,-83.5000000,34.9000000,0.0000000,77,98,15); //Bravura
AddStaticVehicleEx(410,-2068.3999000,-83.5000000,35.0000000,0.0000000,70,89,15); //Manana
AddStaticVehicleEx(496,-2073.0000000,-83.7000000,35.0000000,0.0000000,-1,-1,15); //Blista Compact
AddStaticVehicleEx(535,-2077.1999500,-83.6000000,35.0000000,0.0000000,98,68,15); //Slamvan
AddStaticVehicleEx(535,-2081.0000000,-83.4000000,35.0000000,0.0000000,98,68,15); //Slamvan
AddStaticVehicleEx(550,-2352.1999500,-127.1000000,35.5000000,178.0000000,156,161,15); //Sunrise
AddStaticVehicleEx(550,-2348.6999500,-127.0000000,35.5000000,178.0000000,156,161,15); //Sunrise
AddStaticVehicleEx(400,-2337.3999000,-127.0000000,36.2000000,180.0000000,38,55,15); //Landstalker
AddStaticVehicleEx(400,-2331.1999500,-127.6000000,36.2000000,180.0000000,38,55,15); //Landstalker
AddStaticVehicleEx(589,-2616.3999000,-131.3999900,4.6000000,90.0000000,105,30,15); //Club
AddStaticVehicleEx(431,-2617.8000500,-25.5000000,5.1000000,180.0000000,109,108,15); //Bus
AddStaticVehicleEx(434,-2935.1001000,448.2999900,4.6000000,182.0000000,93,126,15); //Hotknife
AddStaticVehicleEx(434,-2939.1001000,448.0000000,4.6000000,182.0000000,93,126,15); //Hotknife
AddStaticVehicleEx(434,-2943.3000500,447.5000000,4.6000000,182.0000000,93,126,15); //Hotknife
AddStaticVehicleEx(481,-2881.3999000,740.2999900,29.6000000,76.0000000,142,140,15); //BMX
AddStaticVehicleEx(422,-2645.0000000,1335.8000500,8.0000000,0.0000000,106,122,15); //Bobcat
AddStaticVehicleEx(422,-2640.6999500,1335.6999500,8.0000000,0.0000000,106,122,15); //Bobcat
AddStaticVehicleEx(411,-2636.5000000,1336.4000200,7.8000000,0.0000000,16,80,15); //Infernus
AddStaticVehicleEx(411,-2631.6999500,1336.5999800,7.8000000,0.0000000,16,80,15); //Infernus
AddStaticVehicleEx(429,-2640.8000500,1377.6999500,7.4000000,184.0000000,93,126,15); //Banshee
AddStaticVehicleEx(451,-2637.0000000,1378.5000000,7.7000000,180.0000000,27,55,15); //Turismo
AddStaticVehicleEx(506,-2631.3000500,1378.3000500,8.1000000,180.0000000,76,117,15); //Super GT
AddStaticVehicleEx(541,1907.5000000,2085.8999000,11.5000000,40.0000000,42,119,15); //Bullet
AddStaticVehicleEx(558,2107.8999000,2207.1999500,11.2000000,354.0000000,100,13,15); //Uranus
AddStaticVehicleEx(559,2103.1999500,2207.0000000,11.1000000,356.7500000,170,173,15); //Jester
AddStaticVehicleEx(412,2097.8000500,2208.1999500,11.6000000,0.0000000,45,58,15); //Voodoo
AddStaticVehicleEx(584,2057.5000000,2251.8000500,12.8000000,90.0000000,245,245,15); //Trailer 3
AddStaticVehicleEx(598,2254.1001000,2460.1999500,11.2000000,0.0000000,-1,-1,15); //Police Car (LVPD)
AddStaticVehicleEx(598,2270.6001000,2459.3999000,11.2000000,0.0000000,-1,-1,15); //Police Car (LVPD)
AddStaticVehicleEx(598,2277.1999500,2460.0000000,11.2000000,180.0000000,-1,-1,15); //Police Car (LVPD)
AddStaticVehicleEx(598,2289.8000500,2458.8000500,11.2000000,180.0000000,-1,-1,15); //Police Car (LVPD)
AddStaticVehicleEx(599,2273.6001000,2445.1999500,12.0000000,0.0000000,-1,-1,15); //Police Ranger
AddStaticVehicleEx(599,2281.3000500,2445.0000000,12.0000000,0.0000000,-1,-1,15); //Police Ranger
AddStaticVehicleEx(601,2260.6001000,2445.8000500,11.6000000,0.0000000,245,245,15); //S.W.A.T. Van
AddStaticVehicleEx(601,2256.6001000,2445.6999500,11.6000000,0.0000000,245,245,15); //S.W.A.T. Van
AddStaticVehicleEx(596,2251.8000500,2474.5000000,11.4000000,0.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(596,2255.8000500,2474.8999000,11.4000000,0.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(402,2130.8999000,2470.8000500,11.6000000,0.0000000,77,132,15); //Buffalo
AddStaticVehicleEx(402,2122.8999000,2471.0000000,11.6000000,0.0000000,77,132,15); //Buffalo
AddStaticVehicleEx(520,1373.8000500,1768.1999500,12.5000000,180.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(520,1386.8000500,1768.1999500,12.5000000,180.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(520,1398.8000500,1768.1999500,12.5000000,180.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(577,1557.8000500,1588.4000200,13.8000000,86.0000000,189,190,15); //AT-400
AddStaticVehicleEx(592,1567.4000200,1314.5000000,14.5000000,90.0000000,245,245,15); //Andromada
AddStaticVehicleEx(546,1462.4000200,1835.5000000,11.5000000,180.0000000,42,119,15); //Intruder
AddStaticVehicleEx(546,1467.9000200,1835.3000500,11.5000000,180.0000000,42,119,15); //Intruder
AddStaticVehicleEx(546,1474.0999800,1836.0999800,11.5000000,180.0000000,42,119,15); //Intruder
AddStaticVehicleEx(550,1478.9000200,1839.3000500,11.5000000,186.0000000,22,34,15); //Sunrise
AddStaticVehicleEx(585,2162.3999000,1025.4000200,11.3000000,270.0000000,45,58,15); //Emperor
AddStaticVehicleEx(422,2162.5000000,1028.8000500,11.9000000,270.0000000,106,122,15); //Bobcat
AddStaticVehicleEx(600,2162.8000500,1016.0999800,10.7000000,272.0000000,95,10,15); //Picador
AddStaticVehicleEx(522,2133.8000500,1009.7999900,10.8000000,90.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2133.3999000,1012.5000000,10.8000000,90.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2133.6999500,1007.2000100,10.8000000,90.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(481,2141.8999000,1009.7999900,10.6000000,300.0000000,142,140,15); //BMX
AddStaticVehicleEx(481,2141.3000500,1012.2000100,10.6000000,299.9980000,142,140,15); //BMX
AddStaticVehicleEx(402,2143.1999500,1019.4000200,11.3000000,270.0000000,66,31,15); //Buffalo
AddStaticVehicleEx(411,2143.8999000,1025.5000000,11.6000000,270.0000000,114,42,15); //Infernus
AddStaticVehicleEx(415,2176.1001000,989.4000200,11.5000000,0.0000000,59,78,15); //Cheetah
AddStaticVehicleEx(429,2182.3000500,988.7999900,11.1000000,0.0000000,42,119,15); //Banshee
AddStaticVehicleEx(451,2173.0000000,1016.0999800,11.1000000,90.0000000,51,95,15); //Turismo
AddStaticVehicleEx(477,2172.1001000,1009.7999900,11.2000000,89.7500000,98,11,15); //ZR-350
AddStaticVehicleEx(541,2037.9000200,1015.7000100,11.0000000,0.0000000,156,156,15); //Bullet
AddStaticVehicleEx(541,2037.9000200,1008.7000100,11.3000000,0.0000000,156,156,15); //Bullet
AddStaticVehicleEx(559,1882.6999500,957.2000100,11.0000000,90.0000000,88,89,15); //Jester
AddStaticVehicleEx(559,1882.5999800,963.4000200,11.0000000,90.0000000,88,89,15); //Jester
AddStaticVehicleEx(559,2039.1999500,1592.0000000,11.1000000,0.0000000,170,173,15); //Jester
AddStaticVehicleEx(559,2038.6999500,1601.0000000,11.1000000,0.0000000,170,173,15); //Jester
AddStaticVehicleEx(562,2192.3000500,1822.1999500,10.8000000,0.0000000,31,37,15); //Elegy
AddStaticVehicleEx(562,2185.3999000,1822.9000200,10.7000000,180.0000000,31,37,15); //Elegy
AddStaticVehicleEx(560,2170.3999000,1981.0999800,11.1000000,90.0000000,94,112,15); //Sultan
AddStaticVehicleEx(560,2170.6001000,1988.4000200,11.1000000,90.0000000,94,112,15); //Sultan
AddStaticVehicleEx(560,2170.5000000,1973.5999800,11.1000000,90.0000000,94,112,15); //Sultan
//Vehicles: 127
//=====================================================================================
//================================================================================
//******************************EGYÉB**********************************************
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1979.5946,1575.4733,21.5213);
SetPlayerCameraPos(playerid, 1988.4706,1562.5751,19.7544);
SetPlayerCameraLookAt(playerid, 1980.1910,1578.1115,21.2133);
ApplyAnimation(playerid,\"DANCING\",\"DNCE_M_C\",4.0,1,0,0,0,-1);
return 1;
}
 
public OnPlayerConnect(playerid)
{
new pName[30], string[128];
    GetPlayerName(playerid, pName, 30);
    format(string, 256, \"%s csatlakozot a szerverhez.\", pName);
    SendClientMessageToAll(0x858482AA,string);
    SendClientMessage(playerid, 0xfff700AA, \"Üdvözöllek a Szerveren\");
    SendClientMessage(playerid, 0xfff700AA, \"WEBOLDAL: JELENLEG NINCS\");
    SendClientMessage(playerid, 0xfff700AA, \"Parancsokért: /cmds ; /szabaly ; /teles\");
    SendClientMessage(playerid, 0xfff700AA, \"A szabály elolvasása és Betartása kötelezõ (/szabaly)\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[30], string[128];
    GetPlayerName(playerid, pName, 30);
    format(string, 256, \"%s kilépett a Szerverrõl.\", pName);
    SendClientMessageToAll(0x858482AA,string);
return 1;
}
public OnPlayerSpawn(playerid)
{
GivePlayerWeapon(playerid, 14, 5300);
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(playerid,GetPlayerMoney(playerid)-20000); //Enyit veszünk el tõle Halálkór
SetPlayerScore(playerid,GetPlayerScore(playerid)-1); //Enyit veszünk el tõle Halálkór
GivePlayerMoney(killerid,GetPlayerMoney(killerid) +20000); //Ennyit kap Öléskor
SetPlayerScore(killerid,GetPlayerScore(killerid) +1); //Ennyit kap Öléskor
//Kill List==(============(===============(================
new playercash;
if(killerid == INVALID_PLAYER_ID) {
        SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
        ResetPlayerMoney(playerid);
        } else {
                    SendDeathMessage(killerid,playerid,reason);
                    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
                        playercash = GetPlayerMoney(playerid);
                        if (playercash > 0)  {
                                GivePlayerMoney(killerid, playercash);
                                ResetPlayerMoney(playerid);
                        }
                        else
                        {
                        }
        }
return 1;
}
public CountDown()
{
    if (Count > 0){
    GameTextForAll( CountText[Count-1], 2500, 3);
    Count--;
    SetTimer(\"CountDown\", 1000, 0);
    }
    else{
    GameTextForAll(\"~g~Go Go Go!!!\", 2500, 3);
    Count = 5;
    }
    return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_FIGHT)
    {
        if(response)
        {
                if(listitem == 0) // Normal
                    {
                                        SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
                                SendClientMessage(playerid, -1, \"{ffff00}Styles Beállítva erre: Normal\");
                        }
                        if(listitem == 1) // Boxing
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
                                SendClientMessage(playerid, -1, \"{ffff00}Harc Styles Beállítva erre: Boxing\");
                        }
                        if(listitem == 2) // KneeHead
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
                                SendClientMessage(playerid, -1, \"{ffff00}Harc Styles Beállítva erre: KneeHead\");
                        }
                        if(listitem == 4) // GrabKick
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
                                SendClientMessage(playerid, -1, \"{ffff00}Harc Styles Beállítva erre: GrabKick\");
                        }
                        if(listitem == 5) // Elbow
                        {
                                SetPlayerFightingStyle(playerid,  FIGHT_STYLE_ELBOW);
                                SendClientMessage(playerid, -1, \"{ffff00}Harc Styles Beállítva erre: Normal Elbow\");
                        }
        }
    return 1;
}
//CMDS Dialog
if(dialogid == DIALOG_CMDS)
  {
        if(response)
        {
            if(listitem == 0)
   {
   new BigString17[1000];
        strcat(BigString17, \"{FF0000}Driftek:{00ff6f} /drift {ff1e00}További Diftek fejlesztésben.\\n\\n\", 1000 );
        strcat(BigString17, \"{FF0000}Stuntok:{ffea00} /stunt\\n\\n\", 1000 );
            strcat(BigString17, \"{FF0000}Jumpok:{b700ff} /jump /jump2\\n\\n\", 1000 );
   strcat(BigString17, \"{FF0000}Általános:{00d9ff} /fb /ls /sf /lv /sfair /lvair /lsair /anyahajo /jizzy /ch =(chilliad) /katonasag /rend\\n\", 1000 );
        ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, \"{FFFF00}Teleportok\", BigString17, \"Rendben\",\"\");
        }
            if(listitem == 1)
            {
        ShowPlayerDialog(playerid, DIALOG_A, DIALOG_STYLE_MSGBOX, \"{fff700}Alap Parancsok\", \" {00fff7}Teleportok: /teles\\n\\n{66ff00}Öngyilkosság:/kill\\n\\n{0011ff}Készítõk:/credits\\n\\n{ffc400}\\n\\n{e6c717}Animációk /anims\\n\\n{598eba}Vissza számlálás /count\\n\\n{8b3fa6}Rádió Halgatás:/radio\\n\\n{598eba}Harc Style: /fight\", \"Rendben\", \"\");
            }
            if(listitem == 2)
            {
            ShowPlayerDialog(playerid, DIALOG_J, DIALOG_STYLE_MSGBOX, \"{fff700}Jármûvekhez\", \"{ffc400}Jármû lekérése : /v (jármûnév)vagy (ID)\\n\\n{aaff00}Jármû felálítása: /vflip\\n\\n{00ff88}Jármû Megjavitása:/vfix autómatikus:/nobreak\\n\\nJármû Ugratása: /carjump\", \"Rendben\", \"\");
            }
         }
return 1;
}
//RADIÓ-dialóg===================(==================(===============)================(
if ( dialogid == 12 )
   {
            if( !response )
                {
                      SendClientMessage(playerid,0xff0000AA,\"Kiléptél a RádióPanelbõl!\");
                      return 1;
                        }
                        if( listitem == 0)
                        {
                        PlayAudioStreamForPlayer(playerid,\"http://www.sztarnet.hu/ClassFM/mp3_adas_1.m3u\");
                        SendClientMessage(playerid,0xfff700AA,\"Radió ON: ClassFM\");
                        }
                        if( listitem == 1)
                        {
                       PlayAudioStreamForPlayer(playerid,\"http://195.70.35.172:8000/radio1.mp3.m3u\");
                       SendClientMessage(playerid,0xfff700AA,\"Radió ON: Radio1\");
                        }
                        if( listitem == 2)
                        {
                        PlayAudioStreamForPlayer(playerid,\"http://tunein.com/radio/City-Radio-1064-s95541/\");
                        SendClientMessage(playerid,0xfff700AA,\"Radió ON: CityRadio\");
                        }
                        if( listitem == 3)
                        {
                       PlayAudioStreamForPlayer(playerid,\"http://radio.juventus.hu/\");
                       SendClientMessage(playerid,0xfff700AA,\"Radió ON: Juventus Radió\");
                        }
                        if( listitem == 4)
                        {
                       PlayAudioStreamForPlayer(playerid,\"http://stream.tilos.hu/tilos_128.mp3.m3u\");
                       SendClientMessage(playerid,0xfff700AA,\"Radió ON: Tilos Radió\");
                        }
                        if( listitem == 5)
                        {
                         StopAudioStreamForPlayer(playerid);
                        SendClientMessage(playerid,0xff0000AA,\"Radió OFF\");
                        }
               }
      return 1;
}
//==========================)============(==============)==========(===========(======)
CMD:count(playerid,params[])
{
if(Count >= 5)
{
SendClientMessageToAll(0x33AA33AA, \"Visszazámlálás elindúlt (/count)\");
CountDown();
return 1;
}
else
{
SendClientMessage(playerid, 0xAA3333AA, \"Visszaszámlálás már elindúlt!\");
return 1;
}
}
//Radió-Hoz tartozó dolgok==================================================================================================================
CMD:radio(playerid,params[])
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST,\"Rádiók\",\"ClassFm\\nRádió1\\nCityRádió\\nJuventusRádió\\nTilos Radió\\n{FF0000}STOP\",\"Kiválaszt\",\"Mégsem\");
return 1;
}
//Jármûvekhez================================================================================================================================
CMD:vflip(playerid,params[])
{
if(GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid,COLOR_PIROS,\"Épületben ez a parancs nem használható\");
if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage( playerid, -1, \"Ezt a parancsot csak jármûben használhatod\" );
new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID, Angle);
SetVehiclePos(VehicleID, X, Y, Z);
SetVehicleZAngle(VehicleID, Angle);
SendClientMessage(playerid, 0x9900FFAA,\"Jármû felálítva\");
return 1;
}
//Egyéb Hosszabb kiírások====================================================================================================================
CMD:szabaly(playerid,params[])
{
new BigString15[1900];
strcat(BigString15, \"{FF0000}[1]. Tilos {eeff00} a CHEAT -Vagyis Ne használj olyan programokat amik által több képességed lesz, mint egy átlagos játékosnak\\n\", 1900 );
strcat(BigString15, \"{FF0000}[2]. Tilos {eeff00} a DB(DriveBy) vagyis a Jármû vezetõ ülésébõl történõ ölés. \\n\", 1900 );
strcat(BigString15, \"{FF0000}[3]. Tilos {eeff00} a FLOOD - Ne írd le többször ugyan azt, ezzel zavarod a többiek kommunikációját. \\n\", 1900 );
strcat(BigString15, \"{FF0000}[4]. Tilos {eeff00} káromkodni a szerveren, mert ez legtöbbször problémához vezet.\\n\", 1900 );
strcat(BigString15, \"{FF0000}[5]. Tilos {eeff00} a GLICCS-elés, illetve a GTA hibáival való visszaélés.\\n\", 1900 );
strcat(BigString15, \"{FF0000}[6]. Tilos {eeff00} más szervereket hírdetni. Tilos épületben verekedni!\\n\", 1900 );
strcat(BigString15, \"{FF0000}[7]. Tilos {eeff00} adminnak kiadnod magad. Valamint minden rcon-os és admin neves illetéktelen próbálkozást rossz néven veszünk, és ban jár érte.\\n\\n\\n\", 1900 );
//   strcat(BigString15, \"{FF0000}[8]. Tilos {eeff00} a helikopteres \'darálás\' az elkövetõk automatikusan 3 perc börtönt kapnak \\n\\n\\n\", 1900 );
strcat(BigString15, \"{00f2ff}A szabályok ellen vétök, büntetésre számíthatnak. A büntetés mértéke függ a szabálytalanság sulyától, és gyakoriságától. Ez lehet: \\n\", 1900 );
strcat(BigString15, \"{00f2ff}elhallgattatás, börtön, kidobás(kick), kitiltás(ban)\\n\\n\\n\", 1900 );
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, \"{FFFF00}Szabályzat\", BigString15, \"Oké\",\"Mégsem\");
return 1;
}
//JÁRMÛ LEKÉRÕ=================================================================
CMD:v(playerid, params[])
{
        if(GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid,COLOR_PIROS,\"Épületben nem használhatod ezt a parancsot.\");
new Index;
    new tmp[256];  tmp  = strtok(params,Index);
new tmp2[256]; tmp2 = strtok(params,Index);
new tmp3[256]; tmp3 = strtok(params,Index);
    if(!strlen(tmp)) return
SendClientMessage(playerid,COLOR_SÁRGA, \"Használat: /v [modelid/jármûnév] [szín1] [szín2]\");
new car;
new string[128];
new colour1, colour2;
         if(!IsNumeric(tmp))
    car = GetVehicleModelIDFromName(tmp);
        else car = strval(tmp);
if(car < 400 || car > 611) return  SendClientMessage(playerid,COLOR_PIROS, \"Hiba: Nincs ilyen jármû!\");
if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);
if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3);
        if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);
new Float:X,Float:Y,Float:Z;
new Float:Angle,int1;
new LVehicleID = GetPlayerVehicleID(playerid);
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
int1 = GetPlayerInterior(playerid);
SpawnedVehicles[playerid] = CreateVehicle(car, X+3,Y,Z, Angle, colour1, colour2, -1);
LinkVehicleToInterior(LVehicleID,int1);
PlayerPlaySound(playerid,1085,0,0,0);
PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);
format(string, sizeof(string), \"Jármû lerakva! Név: %s | (Model ID: %d) | Szín1: %d, Szín2: %d\", VehicleNames[car-400], car, colour1, colour2);
return SendClientMessage(playerid,0xAFAFAFAA,string);
}
CMD:respawncars(playerid,params[]){
#pragma unused params
    if(GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid,COLOR_PIROS,\"Épületben nem lérhetsz le jármûvet\");
if(!IsPlayerAdmin(playerid)) return 0; //ha nem rcon admin akkor Ismeretlen parancs legyen
SendClientMessageToAll(0xFF9933AA,\"Összes jármû respawnolva\");
for(new cars=0; cars<MAX_VEHICLES; cars++)
{
if(!VehicleOccupied(cars))
{
   SetVehicleToRespawn(cars);
}
}
return 1;
}
GetVehicleModelIDFromName(vname[])
{
for(new i = 0; i < 211; i++)
{
if ( strfind(VehicleNames, vname, true) != -1 )
return i + 400;
}
return -1;
}
stock IsNumeric(string[])
{
for (new i = 0, j = strlen(string);
i < j; i++)
{
if (string > \'9\' || string < \'0\')
return 0;
}
return 1;
}
public VehicleOccupied(vehicleid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle(i,vehicleid)) return 1;
}
return 0;
}
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;
}
//==============)==========(==================)==========(==========)=========(========
CMD:givecash(playerid, params[])
{
    new giveplayerid, moneys;
    if (sscanf(params, \"ui\", giveplayerid, moneys))
    {
    SendClientMessage(playerid,COLOR_SÁRGA, \"Használat: /givecash [playerid] [pénzösszeg]\");
    }
    else if (giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid, 0xad1010AA, \"Hiba: Nincs ilyen játékos!\");
    }
    else
    {
    new playermoney = GetPlayerMoney(playerid);
    new playername[MAX_PLAYER_NAME];
    new string[128];
    if (moneys > 0 && playermoney >= moneys)
    {
    GivePlayerMoney(playerid, (0 - moneys));
    GivePlayerMoney(giveplayerid, moneys);
    GetPlayerName(giveplayerid, playername, sizeof (playername));
    format(string, sizeof(string), \"Utaltál %s nevû játékosnak   %d $ .\", playername, moneys);
    SendClientMessage(playerid, 0x06b28cAA, string);
    GetPlayerName(playerid, playername, sizeof (playername));
    format(string, sizeof(string), \"%s Küldött %d $ .\", playername, moneys);
    SendClientMessage(giveplayerid, 0x06b28cAA, string);
    }
    else
    {
    SendClientMessage(playerid,COLOR_PIROS, \"HIBA: Nincs ennyi pénzed.\");
    }
    }
    return 1;
}
//=====================)==========(===================)==========(==========)========(
CMD:lock(playerid)
        {
        if (IsPlayerInAnyVehicle(playerid))
        {
        new State;
        State=GetPlayerState(playerid);
        if (State!=PLAYER_STATE_DRIVER)
        {
        SendClientMessage(playerid, 0xFFFF00AA, \"{FFFFFF}Elõszõr Ülj be egy jármübe!!!\");
        return 1;
        }
        new i;
        for(i=0;i<MAX_PLAYERS;i++)
        {
        if (i != playerid)
        {
        SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
        }
        }
        SendClientMessage(playerid,COLOR_KÉK, \"Bezárva\");
        PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        PlayerPlaySound(playerid, 1056, X, Y, Z);
        }
        else
        {
        SendClientMessage(playerid,COLOR_PIROS, \"Nem tartózkodsz jármûben\");
        }
        return 1;
        }
CMD:unlock(playerid)
        {
        if (IsPlayerInAnyVehicle(playerid))
        {
        new State;
        State=GetPlayerState(playerid);
        if (State!=PLAYER_STATE_DRIVER)
        {
        SendClientMessage(playerid,COLOR_PIROS, \"Csak Jármû vezetû használhatja ezt a parancsot\");
        return 1;
        }
        new i;
        for(i=0;i<MAX_PLAYERS;i++)
        {
        SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
        }
        SendClientMessage(playerid, 0x33AA33AA,\"Kinyitva\");
        PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        PlayerPlaySound(playerid, 1057, X, Y, Z);
        }
        else
        {
        SendClientMessage(playerid, COLOR_PIROS, \"Nem tartózkodsz Jármûben\");
        }
return 1;
}
//=====================)==========(===================)==========(==========)========(
//=========)========(==============)=============(=============)===========)======)
CMD:fight(playerid, params[])
{
if(GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid,COLOR_PIROS,\"Épületben ez a parancs nem használható\");
ShowPlayerDialog(playerid, DIALOG_FIGHT, DIALOG_STYLE_LIST, \"Harc Styles\", \"Normal\\nBoxing\\nKneeHead\\nKungFu\\nGrabKick\\nElbow\", \"Kiválaszt\", \"Mégse\");
return 1;
}
CMD:stop(playerid, params[])
{
ClearAnimations(playerid);
return 1;
}
CMD:anims(playerid,params[])
{
ShowPlayerDialog(playerid, 233, DIALOG_STYLE_MSGBOX, \"{ffff00}Anims\",\"{e6c717}Cigi:/Smoke1 /smoke2 /smoke3\\n\\n{e6c717}/handstand /around /wave\\n\\n{1790e6}/totter /handshup\\n\\n{6317e6}/piss /eat /drink /handshake\\n\\n{47e617}/masturbate /dance /dance2 /dance3 /dance4\\n\\n{FF0000}Animáció kikapcsolásához: /stop\", \"Rendben\",\"Mégsem\");
return 1;
}
CMD:credits(playerid,params[])
{
ShowPlayerDialog(playerid, 235, DIALOG_STYLE_MSGBOX, \"{ffff00}Késztítõ\",\"{e6c717}Mod Készítõje: ]FreePlay[\\nA modot megtalálod Itt : www.sampforum.hu\", \"Rendben\",\"\");
return 1;
}
CMD:cmds(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST, \"{ffff00}Parancsok\", \"{ffff00}Teleportok\\n{ffff00}Alap Parancsok\\n{ffff00}Jármûvekhez\\n\", \"Kiválaszt\", \"Mégsem\");
return 1;
}
//===============)================(==========)================(===============)==========(=
CMD:fb(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),2152.3137,943.1877,10.6719);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: Fegyver Bolt\");
    } else {
        SetPlayerPos(playerid,2152.3137,943.1877,10.6719);
         SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: Fegyver Bolt\");
    }
    return 1;
}
CMD:jizzy(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),-2598.4688,1385.9268,7.1674);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: Jizzy Club\");
    } else {
        SetPlayerPos(playerid,-2598.4688,1385.9268,7.1674);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: Jizzy Club\");
    }
    return 1;
}
CMD:ls(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),2779.6001,-2010.7078,13.5547);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: LS\");
    } else {
        SetPlayerPos(playerid,2779.6001,-2010.7078,13.5547);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: LS\");
    }
    return 1;
}
CMD:lv(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),2320.2126,1390.6610,42.8853);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: LV\");
    } else {
        SetPlayerPos(playerid,2320.2126,1390.6610,42.8853);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: LV\");
    }
    return 1;
}
CMD:sf(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),-1916.0457,293.3197,41.0469);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: SF\");
} else {
        SetPlayerPos(playerid,-1916.0457,293.3197,41.0469);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: SF\");
    }
    return 1;
}
 
CMD:lsair(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),1556.7784,-2427.9385,13.5547);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: LS-AIR\");
} else {
        SetPlayerPos(playerid,1556.7784,-2427.9385,13.5547);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: LS-AIR\");
    }
    return 1;
}
CMD:lvair(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),1425.0934,1764.7881,10.8130);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: LV-AIR\");
    } else {
        SetPlayerPos(playerid,1425.0934,1764.7881,10.8130);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: LV-AIR\");
    }
    return 1;
}
CMD:sfair(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),-1561.9266,-244.9714,14.1440);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: SF-AIR\");
    } else {
        SetPlayerPos(playerid,-1561.9266,-244.9714,14.1440);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: SF-AIR\");
    }
    return 1;
}
CMD:ch(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),-2321.9036,-1654.8688,483.7031);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: Chilliad\");
    } else {
        SetPlayerPos(playerid,-2321.9036,-1654.8688,483.7031);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: Chilliad\");
    }
    return 1;
}
 
CMD:stunt(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),367.3766,2469.8511,16.4844);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: STUNT\");
    } else {
        SetPlayerPos(playerid,367.3766,2469.8511,16.4844);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: STUNT\");
    }
    return 1;
}
CMD:tune(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),-2689.5376,217.4677,4.1797);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: TUNING GARÁZS\");
    } else {
        SetPlayerPos(playerid,-2689.5376,217.4677,4.1797);
       SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: TUNING GARÁZS\");
    }
    return 1;
}
CMD:tune2(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),1024.7312,-1047.7100,31.6445);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: TUNING GARÁZS 2\");
    } else {
        SetPlayerPos(playerid,1024.7312,-1047.7100,31.6445);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: TUNING GARÁZS 2\");
    }
    return 1;
}
 
CMD:rend(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),2238.1536,2453.2544,10.8203);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: RENDÕRSÉG\");
    } else {
        SetPlayerPos(playerid,2238.1536,2453.2544,10.8203);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: RENDÕRSÉG\");
    }
    return 1;
}
CMD:katonasag(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),212.4296,1903.4264,17.6406);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: KATONASÁG\");
    } else {
        SetPlayerPos(playerid,212.4296,1903.4264,17.6406);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: KATONASÁG\");
    }
    return 1;
}
CMD:anyahajo(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),-1303.9690,462.1216,7.1875);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: ANYAHAJÓ\");
    } else {
        SetPlayerPos(playerid,-1303.9690,462.1216,7.1875);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: ANYAHAJÓ\");
    }
    return 1;
}
 
//Driftek (=)(=)(=)(=)(=)(=)(=)(=)
CMD:drift(playerid, params[]) //Kész
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),-307.9397,1532.6361,75.3594);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: DRIFT\");
    } else {
        SetPlayerPos(playerid,-307.9397,1532.6361,75.3594);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: DRIFT\");
    }
    return 1;
}
 
//Jumpok (=)(=)(=)(=)(=)(=)(=)(=)
CMD:jump(playerid, params[]) //Kész
{
   
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),1547.8168,-1360.4919,329.4620);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: JUMP\");
    } else {
        SetPlayerPos(playerid,1547.8168,-1360.4919,329.4620);
        GivePlayerWeapon(playerid, 46, 99999);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: JUMP\");
    }
    return 1;
}
CMD:jump2(playerid, params[]) //Kész
{
   
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),-1753.8611,885.1871,295.8750);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: JUMP2\");
    } else {
        SetPlayerPos(playerid,-1753.8611,885.1871,295.8750);
        GivePlayerWeapon(playerid, 46, 99999);
        SendClientMessage(playerid,COLOR_SÁRGA,\"Elteleportáltál: JUMP2\");
    }
    return 1;
}
 
//Animációk :O
//Animáció-parancsok
CMD:smoke(playerid, params[])
{
ApplyAnimation(playerid, \"GANGS\", \"smkcig_prtl\", 4.1, 1, 0, 0, 0, 0, 1);
return 1;
}
CMD:smoke2(playerid, params[])
{
ApplyAnimation(playerid, \"LOWRIDER\", \"M_smklean_loop\", 4.1, 1, 0, 0, 0, 0, 1);
return 1;
}
CMD:smoke3(playerid, params[])
{
ApplyAnimation(playerid, \"LOWRIDER\", \"M_smkstnd_loop\", 4.1, 1, 0, 0, 0, 0, 1);
return 1;
}
CMD:arround(playerid, params[])
{
ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.1, 1, 0, 0, 0, 0, 1);
return 1;
}
CMD:handshup(playerid, params[])
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
return 1;
}
CMD:totter(playerid, params[])
{
ApplyAnimation(playerid, \"ped\", \"WALK_drunk\", 4.1, 1, 1, 1, 0, 0, 1);
return 1;
}
CMD:piss(playerid, params[])
{
SetPlayerSpecialAction(playerid,68);
return 1;
}
CMD:eat(playerid, params[])
{
ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 4.1, 0, 0, 0, 0, 0, 1);
return 1;
}
CMD:drink(playerid, params[])
{
ApplyAnimation(playerid, \"GANGS\", \"drnkbr_prtl\", 4.1, 1, 0, 0, 0, 0, 1);
return 1;
}
CMD:handshake(playerid, params[])
{
ApplyAnimation(playerid, \"GANGS\", \"prtial_hndsk_biz_01\", 4.1, 0, 0, 0, 0, 0, 1);
return 1;
}
CMD:masturbate(playerid, params[])
{
ApplyAnimation(playerid, \"PAULNMAC\", \"wank_loop\", 4.1, 1, 0, 0, 0, 0, 1);
return 1;
}
CMD:dance(playerid, params[])
{
SetPlayerSpecialAction(playerid,5);
return 1;
}
CMD:dance2(playerid, params[])
{
SetPlayerSpecialAction(playerid,6);
return 1;
}
CMD:dance3(playerid, params[])
{
SetPlayerSpecialAction(playerid,7);
return 1;
}
CMD:dance4(playerid, params[])
{
SetPlayerSpecialAction(playerid,8);
return 1;
}
//ID-név melett
public OnPlayerText(playerid, text[])
{
new estr[128];
format( estr ,128 ,\"[%i]:%s\" , playerid , text );
SendPlayerMessageToAll( playerid , estr );
return 0;
}

42
SA-MP: Szerverfejlesztés / DM-System
« Dátum: 2013. május 10. - 18:50:10 »
Idézetet írta: ZyZu date=1368203420\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"37172\" data-ipsquote-contentclass=\"forums_Topic
Egy kicsit elégé PDSS típúsú másolás.. :D de egész szép lett
 
Nos igen PDSS-hez hasonló :) de ez a következõ verzióban másként lesz :)
És köszi

43
SA-MP: Szerverfejlesztés / DM-System
« Dátum: 2013. május 10. - 16:51:58 »
Üdv kedves fórumozóknak Készítettem egy \"DM Systemet\" Ha mondhatom ennek
Pár kép róla
\"width=500http://kepfeltoltes.hu/130510/1023071167sa-mp-018_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130510/814241740sa-mp-019_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130510/985660595sa-mp-020_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130510/121772002sa-mp-021_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130510/1242545698sa-mp-022_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130510/342038251sa-mp-023_www.kepfeltoltes.hu_.png[/img]
\"width=500http://kepfeltoltes.hu/130510/sa-mp-024_www.kepfeltoltes.hu_.png[/img]
Újítások várhatóak :
Új DM-ek PL_: Derby DM , Arena DM , Terror DM , M4DM2 karantén DM 
Csatlakozáskor kiírja a DM-ben lévõk számát mindenkinek   
PWN:
 
/*
==============
-DM System   =
             =
-Verzió 1.0  =
    ========
Készítõ: ]FreePlay[ =
         ===========================
Elkészítési idõ:  30 perc (Tesztelésel együtt)=
                             =
www.sampforum.hu                              =
===============================================
*/
/*
====================================
Következõ verzióban várható_:      =
                     =
                     ==================================
Új DM-ek PL_: Derby DM , Arena DM , Terror DM , M4DM2 karantén DM   =
Csatlakozáskor kiírja a DM-ben lévõk számát mindenkinek             =
=====================================================================
*/
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#pragma tabsize 0
static FREEDM[MAX_PLAYERS]={ -1, ... };
#define COLOR_TENGER 0x00a6ffAA
#define COLOR_SÁRGA 0xfff700AA
#define COLOR_PIROS 0xff0000AA
//Dialog Define
#define DIALOG_DMEK 2013
//Sawndm RANDOM
new Float:RandomDM[6][3] =
{
{1305.2129,2191.8435,11.0234},
{1390.3733,2107.3083,11.0156},
{1390.5880,2192.2305,11.0234},
{1305.4147,2107.0833,11.0156},
{1356.1439,2196.3647,11.0234},
{1350.9719,2105.7046,11.0156}
};
//M4DM RANDOM
new Float:RandomDM2[9][3] =
{
{-32.1949,48.3527,3.1172},
{-34.2015,51.4968,3.1094},
{-39.6453,53.1995,6.4844},
{-92.7494,-23.9238,3.1172},
{-60.0644,52.9396,6.4766},
{-58.9392,-32.4063,3.1172},
{-62.3151,-43.0170,3.1172},
{-121.2243,-101.2563,3.1181},
{-74.4122,-103.9932,3.1181}
};
//SniperDM
new Float:RandomDM3[6][3] =
{
{2705.4529,2716.8281,12.8222},
{2605.1272,2687.8218,10.8203},
{2671.2771,2749.1133,10.8203},
{2613.0930,2734.4707,36.5386},
{2630.9536,2725.3049,23.8222},
{2647.3257,2767.6680,10.8203}
};
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\"DM System BY: ]FreePlay[ Verzió 1.0\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n----------------------------------\");
print(\" DM System BY: ]FreePlay[ Verzió 1.0\");
print(\"----------------------------------\\n\");
}
#endif
 
public OnPlayerConnect(playerid)
{
    FREEDM[playerid] = -1;
SendClientMessage(playerid,COLOR_TENGER,\"A szerveren ]FreePlay[ DM-Rendszere üzemel\");
SendClientMessage(playerid,COLOR_TENGER,\"DM Zónákért : /dms\");
return 1;
}
public OnPlayerSpawn(playerid)
{
   switch(FREEDM[playerid])
   {
       case 0:
       {
           new rand = random(sizeof(RandomDM));
         SetPlayerPos(playerid, RandomDM[rand][0], RandomDM[rand][1],RandomDM[rand][2]);
         ResetPlayerWeapons(playerid);
         GivePlayerWeapon(playerid,26,1);
         SetPlayerHealth(playerid,100);
         SetPlayerArmour(playerid,100);
         SetPlayerVirtualWorld(playerid,2);
         }
        case 1:
         {
         new rand = random(sizeof(RandomDM2));
         SetPlayerPos(playerid, RandomDM2[rand][0], RandomDM2[rand][1],RandomDM2[rand][2]);
         ResetPlayerWeapons(playerid);
         SetPlayerHealth(playerid,25);
         GivePlayerWeapon(playerid,31,100);
         SetPlayerVirtualWorld(playerid,3);
         }
         case 2:
         {
         ResetPlayerWeapons(playerid);
         new rand = random(sizeof(RandomDM3));
 SetPlayerPos(playerid, RandomDM3[rand][0], RandomDM3[rand][1],RandomDM3[rand][2]);
         SetPlayerPos(playerid,1379.3,-28.2,30.0);
         GivePlayerWeapon(playerid,20,100);
     SetPlayerHealth(playerid,5);
         SetPlayerVirtualWorld(playerid,4);
      }
   }
   return 1;
}
//SawnDM
CMD:sawndm(playerid,params[])
{
      if(FREEDM[playerid] == 0) return SendClientMessage(playerid,COLOR_PIROS,\"Te már DM-zónában vagy : /exitdm\");
      new rand = random(sizeof(RandomDM));
      SetPlayerPos(playerid, RandomDM[rand][0], RandomDM[rand][1],RandomDM[rand][2]);
      FREEDM[playerid] = 0;
      new pName[30], string[128];
      GetPlayerName(playerid, pName, 30);
      format(string, 256, \"%s csatlakozot a Sawn DM-hez belépés: (/sawndm)\", pName);
      SendClientMessageToAll(COLOR_SÁRGA,string);
      SetPlayerVirtualWorld(playerid,2);
      GivePlayerWeapon(playerid,26,6789);
      SendClientMessage(playerid,COLOR_TENGER,\"Csatlakoztál a Sawn DM-hez\");
      return 1;
}
//M4DM
CMD:m4dm(playerid,params[])
{
      if(FREEDM[playerid] == 0) return SendClientMessage(playerid,COLOR_PIROS,\"Te már DM-zónában vagy : /exitdm\");
      new rand = random(sizeof(RandomDM2));
      SetPlayerPos(playerid, RandomDM2[rand][0], RandomDM2[rand][1],RandomDM2[rand][2]);
      FREEDM[playerid] = 1;
      new pName[30], string[128];
      SetPlayerHealth(playerid,25);
      GetPlayerName(playerid, pName, 30);
      format(string, 256, \"%s csatlakozot az M4DM-hez belépés: (/m4dm)\", pName);
      SendClientMessageToAll(COLOR_SÁRGA,string);
      SetPlayerVirtualWorld(playerid,3);
      GivePlayerWeapon(playerid,31,9990);
      SendClientMessage(playerid,COLOR_TENGER,\"Csatlakoztál az M4DM -hez\");
      return 1;
}
//Sniperdm
CMD:sniperdm(playerid,params[])
{
      if(FREEDM[playerid] == 0) return SendClientMessage(playerid,COLOR_PIROS,\"Te már DM-zónában vagy : /exitdm\");
      new rand = random(sizeof(RandomDM3));
      SetPlayerPos(playerid, RandomDM3[rand][0], RandomDM3[rand][1],RandomDM3[rand][2]);
      FREEDM[playerid] = 2;
      ShowPlayerMarkers(true);
      SetPlayerHealth(playerid,5);
      SetPlayerVirtualWorld(playerid,4);
      new pName[30], string[128];
      GetPlayerName(playerid, pName, 30);
      format(string, 256, \"%s csatlakozot a Sniper DM-hez belépés: (/sniperdm)\", pName);
      SendClientMessageToAll(COLOR_SÁRGA,string);
      GivePlayerWeapon(playerid,34,100);
      SendClientMessage(playerid,COLOR_TENGER,\"Csatlakoztál a SniperDM -hez\");
      return 1;
}
//Kilépés Parancs
CMD:exitdm(playerid,params[])
   {
   if(FREEDM[playerid] == -1) return SendClientMessage(playerid,COLOR_PIROS, \"Nem tartózkodsz DM-zónában\");
   SetPlayerVirtualWorld(playerid,0);
   FREEDM[playerid] = -1;
   ShowPlayerMarkers(false);
   return SendClientMessage(playerid,COLOR_SÁRGA,\"Kiléptél a DeathMatch zónából.\");
}
 
CMD:dms(playerid,params[])
{
if(FREEDM[playerid] == 0) return SendClientMessage(playerid,COLOR_PIROS,\"Te már DM-zónában vagy : /exitdm\");
ShowPlayerDialog(playerid, DIALOG_DMEK, DIALOG_STYLE_LIST, \"DM-Zónák\", \"Sawn DM\\nM4DM\\nSniperDM\", \"Csatlakozás\", \"Mégsem\");
return 1;
}
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_DMEK)
    {
        if(response)
        {
            if(listitem == 0) //Sawn DM
            {
             new rand = random(sizeof(RandomDM));
             SetPlayerPos(playerid, RandomDM[rand][0], RandomDM[rand][1],RandomDM[rand][2]);
             FREEDM[playerid] = 0;
             new pName[30], string[128];
             GetPlayerName(playerid, pName, 30);
             format(string, 256, \"%s csatlakozot a Sawn DM-hez belépés: (/sawndm)\", pName);
             SendClientMessageToAll(COLOR_SÁRGA,string);
             SetPlayerVirtualWorld(playerid,2);
             GivePlayerWeapon(playerid,26,6789);
             SendClientMessage(playerid,COLOR_TENGER,\"Csatlakoztál a Sawn DM-hez\");
            }
            if(listitem == 1) //M4DM
            {
              new rand = random(sizeof(RandomDM2));
              SetPlayerPos(playerid, RandomDM2[rand][0], RandomDM2[rand][1],RandomDM2[rand][2]);
              FREEDM[playerid] = 1;
              new pName[30], string[128];
              GetPlayerName(playerid, pName, 30);
              format(string, 256, \"%s csatlakozot az M4DM-hez belépés: (/m4dm)\", pName);
              SendClientMessageToAll(COLOR_SÁRGA,string);
              SetPlayerVirtualWorld(playerid,3);
              GivePlayerWeapon(playerid,31,9990);
              SendClientMessage(playerid,COLOR_TENGER,\"Csatlakoztál az M4DM -hez\");
            }
            if(listitem == 2) //SniperDM
            {
             new rand = random(sizeof(RandomDM));
             SetPlayerPos(playerid, RandomDM[rand][0], RandomDM[rand][1],RandomDM[rand][2]);
             FREEDM[playerid] = 2;
             SetPlayerVirtualWorld(playerid,4);
             new pName[30], string[128];
             GetPlayerName(playerid, pName, 30);
             format(string, 256, \"%s csatlakozot a KDM-hez belépés: (/kdm)\", pName);
             SendClientMessageToAll(COLOR_SÁRGA,string);
             GivePlayerWeapon(playerid,34,100);
             ShowPlayerMarkers(false);
             SendClientMessage(playerid,COLOR_TENGER,\"Csatlakoztál a Kartantén DM -hez\");
            }
        }
        return 1;
}
   return 0;
}

 
Tudom nem nagy de valakinek biztos hasznára lesz és a következõ verzió kicsit hasznosabb is lesz majd  

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