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


Témák - [RC]Farkas

Oldalak: [1] 2 3
1
SA-MP: Szerverfejlesztés / Minigame
« Dátum: 2013. február 21. - 18:18:31 »
Helló
Készitettem egy minigame scriptet 2 minigame van benne MTA Derby és Monster Sumo.
Parancsok:
/minigames
/minigame
/minigame2
/exitminigame
Remélem tetszik és valahányatoknak jol jön
 
#include <a_samp>
#include <foreach>
#include <zcmd>
#include <fixchars>
#pragma tabsize 0
new SUMO[MAX_PLAYERS];
new SUMOCAR2[MAX_PLAYERS];
new SumoStarted;
new SumoSpawn;
new Roman[MAX_PLAYERS];
new SumoCar[MAX_PLAYERS];
new SumoTimer;
new SumoSec;
new SumoPlayers;
new InSumo[MAX_PLAYERS];
new DM[MAX_PLAYERS];
new Float:SumoSpawn2 [][4] =
{
{5016.9028,-1818.4657,5.7785,178.5417},
{5016.6494,-1817.9543,5.7785,179.8417},
{5094.6938,-1818.4242,5.6285,178.5884},
{5093.2153,-1851.8483,5.6285,88.6609},
{5055.3389,-1887.9875,5.3785,359.0468}
};
new Float:SumoSpawn3 [][4] =
{
{3611.4419,-1796.7487,13.3359,40.5142},
{3622.7029,-1775.6836,13.3434,80.8424},
{3622.0593,-1757.4803,13.3377,109.8828},
{3608.5742,-1740.2909,13.3358,151.9021},
{3584.3894,-1733.7529,13.3359,191.9472},
{3560.3035,-1746.6589,13.3377,235.4297},
{3552.6279,-1776.4774,13.3359,293.5663},
{3575.1228,-1803.0439,13.3359,343.7377},
{3601.8369,-1802.9872,13.3359,21.4596},
{3623.1221,-1776.4288,13.3429,77.0532}
};
#define ScoreWin 25
#define CashWin random(50000)+1000
#define red 0xFF0000AA
public OnPlayerDisconnect(playerid, reason)
{
    SUMO[playerid]=0;
    if(InSumo[playerid] == 1)
    {
    DestroyVehicle(SumoCar[playerid]);
    SumoPlayers--;
    InSumo[playerid] = 0;
    DM[playerid] = 0;
    if(Roman[playerid] == 0)
    {
    new str[128];
    format(str,sizeof(str),\"%s Kiesete a Minigameböl Mert kilépet a szerorol\",pName(playerid));
    SendClientMessageToAll(0xFB0000FF,str);
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    SetPlayerVirtualWorld(playerid,0);
    }
    if(SumoPlayers == 1)
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(InSumo == 1)
    {
    if(Roman[playerid] == 0)
    {
    new str[128];
    format(str,sizeof(str),\"%s Megnyerte a Minigamet Nyereménye:%d\",pName(i),CashWin);
    SendClientMessageToAll(0x0FFDD349,str);
    }
    GivePlayerMoney(i,CashWin);
    SumoPlayers--;
    InSumo[playerid] = 0;
    SUMO[playerid]=0;
    SumoPlayers = 0;
    SumoStarted = 0;
    DM[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    DestroyVehicle(SumoCar);
    SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
    InSumo = 0;
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    }
    }
    return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    if(InSumo[playerid] == 1)
    {
    DestroyVehicle(SumoCar[playerid]);
    SumoPlayers--;
    InSumo[playerid] = 0;
    DM[playerid] = 0;
    if(Roman[playerid] == 0)
    {
    new str[128];
    format(str,sizeof(str),\"%s Kieste a Minigameböl\",pName(playerid));
    SendClientMessageToAll(0xFB0000FF,str);
    SetPlayerVirtualWorld(playerid,0);
    SpawnPlayer(playerid);
    }
    if(SumoPlayers == 1)
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(InSumo == 1)
    {
    if(Roman[playerid] == 0)
    {
    new str[128];
    format(str,sizeof(str),\"%s Megnyerte a Minigamet Nyereménye:%d\",pName(i),CashWin);
    SendClientMessageToAll(0x0FFDD349,str);
    }
    GivePlayerMoney(i,CashWin);
    SumoPlayers = 0;
    InSumo[playerid] = 0;
    SumoStarted = 0;
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    SetPlayerVirtualWorld(playerid,0);
    DM[playerid] = 0;
    new Float:x,Float:y,Float:z;
    GetPlayerPos(i,x,y,z);
    SetPlayerPos(i,x,y,z+1);
    DestroyVehicle(SumoCar);
    SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
    TogglePlayerControllable(i,1);
    InSumo = 0;
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    }
    }
    return 1;
}
public OnPlayerSpawn(playerid)
{
        InSumo[playerid] =0;
        if(SUMO[playerid]==1)
        {
        PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
        }
        return 1;
        }
forward SumoRandomCar(playerid);
public SumoRandomCar(playerid)
{
    new pRandom = random(sizeof(SumoSpawn2));
    new vRandom = random(5);
    switch (vRandom)
    {
                case 0:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);}
                case 1:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);}
                case 2:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);}
                case 3:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);}
                case 4:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);}
    }
    return SUMOCAR2[playerid];
}
forward SumoRandomCar2(playerid);
public SumoRandomCar2(playerid)
{
    new pRandom = random(sizeof(SumoSpawn3));
    new vRandom = random(5);
    switch (vRandom)
    {
                case 0:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn3[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);}
                case 1:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn3[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);}
                case 2:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn3[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);}
                case 3:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn3[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);}
                case 4:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);}
}
    return SUMOCAR2[playerid];
}
public OnPlayerUpdate(playerid)
{
    if(InSumo[playerid]==1)
    {
    new Float:x,Float:y,Float:z;
    if(GetPlayerPos(playerid,x,y,z) && z < -1.0)
    {
    RemovePlayerFromVehicle(playerid);
    SUMO[playerid]=0;
    if(InSumo[playerid] == 1)
    {
    DestroyVehicle(SumoCar[playerid]);
    SumoPlayers--;
    InSumo[playerid] = 0;
    DM[playerid] = 0;
    if(Roman[playerid] == 0)
    {
    new str[128];
    format(str,sizeof(str),\"%s Kieset a Minigameböl\",pName(playerid));
    SendClientMessageToAll(0xFB0000FF,str);
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    SetPlayerVirtualWorld(playerid,0);
}
    if(SumoPlayers == 1)
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(InSumo == 1)
    {
    if(Roman[playerid] == 0)
    {
    new str[128];
    format(str,sizeof(str),\"%s Megnyerte a Minigamet Nyereménye:%d\",pName(i),CashWin);
    SendClientMessageToAll(0x0FFDD349,str);
    }
    GivePlayerMoney(i,CashWin);
   SumoPlayers = 0;
    SumoStarted = 0;
    DM[playerid] = 0;
    SetPlayerVirtualWorld(playerid,0);
    DestroyVehicle(SumoCar);
    SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
    InSumo = 0;
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    }
    }
    return 1;
    }
    }
    return true;
}
CMD:minigame(playerid,params[])
{
         if(InSumo[playerid] == 0)
  {
                if(SumoStarted == 0)
  {
                if(Roman[playerid] == 0)
                {
                SendClientMessageToAll(0xFFFF00AA,\"Minigame játék elindult! Csatlakozásért használad {ff0000}/minigame!\");
      }
                GetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]);
  SumoStarted=1;
                InSumo[playerid] = 1;
                SumoSpawn=2;
                SumoTimer = SetTimer(\"StartSumo\",1000,1);
                SumoSec = 30;
                TogglePlayerControllable(playerid,0);
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                SumoPlayers = 1;
                DM[playerid] = 1;
  }else
                if(SumoStarted == 1)
                {
                SumoPlayers++;
                if(SumoSpawn == 2)
                {
                SumoSpawn=3;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 3)
                {
                SumoSpawn=4;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 4)
                {
                SumoSpawn=5;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 5)
                {
                SumoSpawn=6;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 6)
                {
                SumoSpawn=7;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 7)
                {
                SumoSpawn=8;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 8)
                {
                SumoSpawn=9;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 9)
                {
                SumoSpawn=10;
                KillTimer(SumoTimer);
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                SumoStarted = 2;
                SendClientMessageToAll(0xAA3333AA,\"{cccccc}Kiestél a játéból! {3399ff}Car Sumo Minigame {cccccc}elíndult!\");
                for(new i = 0; i < GetMaxPlayers(); i++)
            {
            if(InSumo == 1)
            {
                           TogglePlayerControllable(i,1);
                           GameTextForPlayer(i,\"~r~~h~Kiestél!\",3000,3);
                           SetTimerEx(\"Eliminat\",500,0,\"i\",i);
               return 1;
            }
            return 1;
        }
        }
        }else SendClientMessage(playerid,0xAA3333AA,\"{3399ff}A Minigame {cccccc}már elindult!\");
                new str[128];
                format(str,sizeof(str),\"%s Csatlakozot a mingamehoz Belépéshez:[/minigame]\",pName(playerid));
                SendClientMessageToAll(0x0FFDD349,str);
      }else SendClientMessage(playerid,0xAA3333AA,\"{cccccc}Már benne vagy a {3399ff}Minigameban kilépéshez /exitminigame!\");
      return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(InSumo[playerid] == 1)
    {
        PutPlayerInVehicle(playerid,SumoCar[playerid],0);
    }
    return 1;
}
forward StartSumo(playerid);
public StartSumo(playerid)
{
                if(SumoSec > 1)
                {
                new time;
                new strec[128];
                SumoSec--;
                time = (SumoSec);
                format(strec, sizeof(strec), \"~h~~r~Minigame Kezdés\\n %d\", time);
                for(new i = 0; i < GetMaxPlayers(); i++)
                {
                if(InSumo == 1)
                {
                GameTextForPlayer(i, strec, 3000, 3);
                }
                }
                }
                if(SumoSec == 1)
                {
                SumoSec = 0;
                if(SumoPlayers >= 2)
                {
                for(new i = 0; i < GetMaxPlayers(); i++)
                {
                if(InSumo == 1)
                {
                GameTextForPlayer(i, \"~r~>>>START<<<\", 3000, 3);
                KillTimer(SumoTimer);
                TogglePlayerControllable(i,1);
                SumoStarted=2;
                SetTimerEx(\"Eliminat\",500,0,\"i\",i);
                }
                }
                }else
                if(SumoPlayers < 2)
                {
                for(new i = 0; i < GetMaxPlayers(); i++)
                {
                if(InSumo == 1)
                {
                new Float:x,Float:y,Float:z;
                GetPlayerPos(i,x,y,z);
                SetPlayerPos(i,x,y,z+1);
                DestroyVehicle(SumoCar);
                SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
                KillTimer(SumoTimer);
                InSumo =0;
                TogglePlayerControllable(i,1);
                }
                }
                SumoStarted=0;
                if(Roman[playerid] == 0)
                {
                SendClientMessageToAll(0xFB0000FF,\"A Derby Minigame befejezdõdõtt! Indok: Legalább 2 játékos szûkséges!\");
                DM[playerid] = 0;
      SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
                }
                }
                }
                return 1;
}
CMD:exitminigame(playerid,params[])
{
        if(DM[playerid] == 0) return SendClientMessage(playerid,0xFB0000FF,\"Nem vagy Minigameban!\");
        DM[playerid] = 0;
        SetPlayerVirtualWorld(playerid,0);
        for(new i = 0; i < GetMaxPlayers(); i++)
        {
        if(InSumo == 1)
        {
new Float:x,Float:y,Float:z;
        GetPlayerPos(i,x,y,z);
        SetPlayerPos(i,x,y,z+1);
        DestroyVehicle(SumoCar);
        SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
        KillTimer(SumoTimer);
        InSumo =0;
        TogglePlayerControllable(i,1);
        }
        }
        SumoStarted=0;
        DM[playerid] = 0;
SUMO[playerid]=0;
        SetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]);
        SetPlayerVirtualWorld(playerid,0);
return SendClientMessage(playerid,0xFFFF00AA,\"Kiléptél a Minigamebõl.\");
}
CMD:minigames(playerid,params[])
{
   ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,\"Minigamek\",\"MTA Derby\\nMonster Sumo\",\"Kiválaszt\",\"Mégse\");
   return 1;
}
CMD:minigame2(playerid,params[])
{
if(InSumo[playerid] == 0)
      {
                if(SumoStarted == 0)
      {
                if(Roman[playerid] == 0)
                {
                SendClientMessageToAll(0xFFFF00AA,\"Minigame2 játék elindult! Csatlakozásért használad {ff0000}/minigame2!\");
      }
                GetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]);
      SumoStarted=1;
                InSumo[playerid] = 1;
                SumoSpawn=3;
                SumoTimer = SetTimer(\"StartSumo\",1000,1);
                SumoSec = 30;
                TogglePlayerControllable(playerid,0);
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                SumoPlayers = 1;
                DM[playerid] = 1;
      }else
                if(SumoStarted == 1)
                {
                SumoPlayers++;
                if(SumoSpawn == 3)
                {
                SumoSpawn=3;
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 3)
                {
                SumoSpawn=4;
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 4)
                {
                SumoSpawn=5;
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 5)
                {
                SumoSpawn=6;
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 6)
                {
                SumoSpawn=7;
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 7)
                {
                SumoSpawn=8;
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 8)
                {
                SumoSpawn=9;
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 9)
                {
                SumoSpawn=10;
                KillTimer(SumoTimer);
                PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0);
                InSumo[playerid] = 1;
                SumoStarted = 2;
                SendClientMessageToAll(0xAA3333AA,\"{cccccc}Kiestél a játéból! {3399ff}Car Sumo Minigame {cccccc}elíndult!\");
                for(new i = 0; i < GetMaxPlayers(); i++)
            {
            if(InSumo == 1)
            {
                           TogglePlayerControllable(i,1);
                           GameTextForPlayer(i,\"~r~~h~Kiestél!\",3000,3);
                           SetTimerEx(\"Eliminat\",500,0,\"i\",i);
               return 1;
            }
            return 1;
        }
        }
        }else SendClientMessage(playerid,0xFB0000FF,\"A Minigame már elindult!\");
                new str[128];
                format(str,sizeof(str),\"%s Csatlakozot a mingame2 játékhoz Belépéshez:[/minigame2]\",pName(playerid));
                SendClientMessageToAll(0x0FFDD349,str);
      }else SendClientMessage(playerid,0xFB0000FF,\"Már benne vagy a Minigameban kilépéshez /exitminigame!\");
      return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(InSumo[playerid] == 1)
    {
    DestroyVehicle(SumoCar[playerid]);
    SumoPlayers--;
    InSumo[playerid] = 0;
    DM[playerid] = 0;
    if(Roman[playerid] == 0)
    {
    new str[128];
    format(str,sizeof(str),\"%s Kieste a Minigameböl\",pName(playerid));
    SendClientMessageToAll(0xFB0000FF,str);
    SetPlayerVirtualWorld(playerid,0);
    SpawnPlayer(playerid);
}
    if(SumoPlayers == 1)
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(InSumo == 1)
    {
    if(Roman[playerid] == 0)
    {
    new str[128];
    format(str,sizeof(str),\"%s Megnyerte a Minigamet Nyereménye:%d\",pName(i),CashWin);
    SendClientMessageToAll(0x0FFDD349,str);
    }
    GivePlayerMoney(i,CashWin);
    SumoPlayers = 0;
    InSumo[playerid] = 0;
    SumoStarted = 0;
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    SetPlayerVirtualWorld(playerid,0);
    DM[playerid] = 0;
    new Float:x,Float:y,Float:z;
    GetPlayerPos(i,x,y,z);
    SetPlayerPos(i,x,y,z+1);
    DestroyVehicle(SumoCar);
    SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
    TogglePlayerControllable(i,1);
    InSumo = 0;
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    SetPlayerVirtualWorld(playerid,0);
}
    }
    }
    }
    return 1;
}

 
Obijectek
 
//minigame MTA Derby
CreateDynamicObject(8558, 5037.4438476563, -1851.853515625, 3, 0, 0, 0);
CreateDynamicObject(8558, 5076.2490234375, -1851.8591308594, 3.0499987602234, 0, 0, 0);
CreateDynamicObject(8558, 5094.4311523438, -1834.2766113281, 3.0999975204468, 0, 0, 90);
CreateDynamicObject(8558, 5073.1772460938, -1816.7080078125, 3, 0, 0, 0);
CreateDynamicObject(8558, 5055.4682617188, -1834.2864990234, 3.0499987602234, 0, 0, 90);
CreateDynamicObject(8558, 5034.5546875, -1816.6857910156, 3.25, 0, 0, 0);
CreateDynamicObject(8558, 5016.962890625, -1834.2069091797, 3.25, 0, 0, 90);
CreateDynamicObject(8558, 5016.6938476563, -1869.8442382813, 3.0499987602234, 0, 0, 90);
CreateDynamicObject(8558, 5055.4145507813, -1873.3316650391, 2.8499975204468, 0, 0, 90);
CreateDynamicObject(8558, 5034.2197265625, -1891.0266113281, 2.8999962806702, 0, 0, 0);
CreateDynamicObject(8558, 5066.9345703125, -1875.7468261719, 2.75, 0, 0, 56);
CreateDynamicObject(8558, 5073.2255859375, -1866.0450439453, 2.7999987602234, 0, 0, 55.997314453125);
CreateDynamicObject(8558, 5034.4545898438, -1834.7785644531, 9.7424268722534, 0, 340, 180);
CreateDynamicObject(8558, 5013.6694335938, -1836.5760498047, 16.466381072998, 0, 0, 90);
CreateDynamicObject(8558, 5013.4560546875, -1887.6351318359, 21.016380310059, 0, 0, 90);
CreateDynamicObject(1634, 5013.6518554688, -1856.9860839844, 19.292156219482, 0, 0, 180);
CreateDynamicObject(8558, 5031.1884765625, -1818.7486572266, 16.516380310059, 0, 0, 0);
CreateDynamicObject(8558, 5058.7758789063, -1834.7280273438, 16.566379547119, 0, 0, 300);
CreateDynamicObject(8558, 5067.525390625, -1850.7005615234, 16.61637878418, 0, 0, 0);
CreateDynamicObject(8558, 5031.0244140625, -1850.6580810547, 16.519998550415, 0, 0, 0);
CreateDynamicObject(8558, 5085.4384765625, -1833.0473632813, 16.66637802124, 0, 0, 90);
CreateDynamicObject(8558, 5067.9409179688, -1817.3812255859, 16.466377258301, 0, 0, 188);
CreateDynamicObject(8558, 5029.873046875, -1836.3991699219, 16.566379547119, 0, 0, 90);
CreateDynamicObject(8558, 5029.89453125, -1871.9643554688, 16.61637878418, 0, 0, 90);
CreateDynamicObject(8558, 5047.4409179688, -1889.4437255859, 16.66637802124, 0, 0, 180);
CreateDynamicObject(8558, 5064.5258789063, -1871.6862792969, 16.716377258301, 0, 0, 271.99450683594);
//minigame Monster Sumo
CreateDynamicObject(13634, 3584.3000488281, -1769.6999511719, 15.89999961853, 0, 0, 0);
CreateDynamicObject(16668, 2700.3000488281, -1803.5, -18.39999961853, 0, 0, 0);
CreateDynamicObject(16668, 2700.5, -1709.9000244141, -19.200000762939, 0, 0, 270);
CreateDynamicObject(16668, 3645.3000488281, -1719.8000488281, 1.1000000238419, 0, 0, 175.99450683594);
CreateDynamicObject(16668, 2788, -1804.1999511719, -19.200000762939, 0, 0, 89.994506835938);
CreateDynamicObject(7191, 3515, -1837.8000488281, 2.4000000953674, 0, 0, 235.99487304688);
CreateDynamicObject(7191, 2678.6999511719, -1682.6999511719, -17.700000762939, 0, 0, 113.99490356445);
CreateDynamicObject(7191, 2804.3000488281, -1833.0999755859, -17.5, 0, 0, 289.994140625);
CreateDynamicObject(13607, 3588.1000976563, -1768.5999755859, 5.8000001907349, 0, 0, 0);
CreateDynamicObject(13607, 3588.1000976563, -1768.8000488281, 8.3000001907349, 0, 0, 0);
CreateDynamicObject(13607, 3588, -1769.1999511719, 10.300000190735, 0, 0, 0);
CreateDynamicObject(13607, 3587.8000488281, -1769.3000488281, 12.800000190735, 0, 0, 0);
CreateDynamicObject(13607, 3587.6999511719, -1769.1999511719, 15.5, 0, 0, 0);
CreateDynamicObject(16668, 3637.3000488281, -1826.0999755859, 1.7000000476837, 0, 0, 85.989990234375);
CreateDynamicObject(16668, 3509.6999511719, -1816.0999755859, 1.5, 0, 0, 355.98999023438);
CreateDynamicObject(16668, 3518, -1710.5, 1.2000000476837, 0, 0, 265.98449707031);
CreateDynamicObject(7191, 3493.5, -1822.8000488281, 2.4000000953674, 0, 0, 235.99182128906);
CreateDynamicObject(7191, 3502.8999023438, -1704.5, 2.4000000953674, 0, 0, 117.99182128906);
CreateDynamicObject(7191, 3543.6999511719, -1688.1999511719, 1.8999999761581, 0, 0, 105.98767089844);
CreateDynamicObject(7191, 3561.8000488281, -1684.0999755859, 2.2000000476837, 0, 0, 97.985107421875);
CreateDynamicObject(7191, 3646.6999511719, -1695.6999511719, 2.2000000476837, 0, 0, 63.981567382813);
CreateDynamicObject(7191, 3664.6999511719, -1704.5, 2, 0, 0, 63.978881835938);
CreateDynamicObject(7191, 3648.6999511719, -1843.0999755859, 2.2000000476837, 0, 0, 289.97888183594);
CreateDynamicObject(7191, 3621, -1851.1999511719, 2.0999999046326, 0, 0, 289.97863769531);

2
Segítségkérés / Minigame Probléma
« Dátum: 2013. február 20. - 16:43:54 »
Hi
Van egy minigáme scriptem és abba ugy kéne, hogyha a player minigámeben van és kiszál a kocsibol akor kiesen a mingameböl ezt, hogy lehet megcsinálni.

3
Segítségkérés / Hányás Animáció vanne??
« Dátum: 2013. február 18. - 18:14:45 »
Mit a téma cime is az hogy a samp ben lehete ojan animáciot csinálni hogy pl beirja valaki, hogy /hanyas és a skinje hányni kezd

4
Segítségkérés / ZCMD DM KÉSZITÉSE
« Dátum: 2013. február 15. - 13:34:04 »
ZCMD-vel, hogy kell Dm zonát késziteni ugy, hogy ne menyenek a parancsok benne én már probáltam igy:http://sampforum.hu/index.php?topic=23934.0 de nem jó. Aki tud segiteni az pls segitsen

5
Segítségkérés / Minigame HELP!!!
« Dátum: 2013. február 10. - 13:38:00 »
Van nekem egy minigáme scriptem de nem és én átalakitotam de valamiért nem megy tökéletesen az akir beirja a /minigame parancsot azt beteszi a minigámeba de ha csatlakozni akar valaki a minigámebe akor azt vagy nem teszi be vagy be teszi de nem a pájára hanem a pája allá dobja vagyi bebugol ha 2 játékos akor csatlakozni a játékhoz
 
#include <a_samp>
#include <foreach>
#include <fixchars>
#pragma tabsize 0
new SUMO[MAX_PLAYERS];
new SUMOCAR2[MAX_PLAYERS];
new SumoStarted;
new SumoSpawn;
new Roman[MAX_PLAYERS];
new SumoCar[MAX_PLAYERS];
new SumoTimer;
new SumoSec;
new SumoPlayers;
new InSumo[MAX_PLAYERS];
new Float:SumoSpawn2 [][4] =
{
{5016.9028,-1818.4657,5.7785,178.5417},
{5016.6494,-1817.9543,5.7785,179.8417},
{5094.6938,-1818.4242,5.6285,178.5884},
{5093.2153,-1851.8483,5.6285,88.6609},
{5055.3389,-1887.9875,5.3785,359.0468}
};
static minid[MAX_PLAYERS]={ -1, ... };
#define ScoreWin 0
#define CashWin 50000
#define red 0xFF0000AA
public OnPlayerConnect(playerid)
{
    InSumo[playerid] =0;
    SUMO[playerid]=0;
    minid[playerid] = -1;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    SUMO[playerid]=0;
    if(InSumo[playerid] == 1)
    {
    DestroyVehicle(SumoCar[playerid]);
    SumoPlayers--;
InSumo[playerid] = 0;
    new string[1900];
    if(Roman[playerid] == 0)
    if(SumoPlayers == 1)
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(InSumo == 1)
    {
    if(Roman[playerid] == 0)
    SendClientMessageToAll(red,string);
    SetPlayerScore(i,GetPlayerScore(i)+ScoreWin);
    GivePlayerMoney(i,CashWin);
    SumoPlayers--;
    InSumo[playerid] = 0;
    SUMO[playerid]=0;
    SumoPlayers = 0;
    SumoStarted = 0;
    DestroyVehicle(SumoCar);
    SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
    InSumo = 0;
    minid[playerid] = -1;
}
    }
    }
    }
    return 1;
}
forward SumoRandomCar(playerid);
public SumoRandomCar(playerid)
{
    new pRandom = random(sizeof(SumoSpawn2));
    new vRandom = random(5);
    switch (vRandom)
    {
                case 0:
                {
      DestroyVehicle(SUMOCAR2[playerid]);
                SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);}
      case 1:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
      SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);}
                case 2:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
      SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);}
                case 3:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
      SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);}
                case 4:
                {
                DestroyVehicle(SUMOCAR2[playerid]);
      SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);}
    }
    return SUMOCAR2[playerid];
}
public OnPlayerUpdate(playerid)
{
    if(InSumo[playerid]==1)
    {
    new Float:x,Float:y,Float:z;
    if(GetPlayerPos(playerid,x,y,z) && z < -1.0)
    {
    RemovePlayerFromVehicle(playerid);
    SUMO[playerid]=0;
    if(InSumo[playerid] == 1)
    {
    DestroyVehicle(SumoCar[playerid]);
    SumoPlayers--;
    InSumo[playerid] = 0;
    new string[128];
    if(Roman[playerid] == 0)
    if(SumoPlayers == 1)
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(InSumo == 1)
    {
    if(Roman[playerid] == 0)
    {
    format(string, sizeof(string), \"%s Megnyerte a minigamet\", Name(i),ScoreWin,CashWin);
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
}
    SendClientMessageToAll(red,string);
    SetPlayerScore(i,GetPlayerScore(i)+ScoreWin);
    GivePlayerMoney(i,CashWin);
    SumoPlayers = 0;
    SumoStarted = 0;
    DestroyVehicle(SumoCar);
    SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
    InSumo = 0;
    SetPlayerVirtualWorld(playerid,0);
minid[playerid] = -1;
}
    }
    }
    }
    return 1;
    }
    }
    return true;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/minigame\", cmdtext, true, 10) == 0)
{
if(InSumo[playerid] == 0)
                {
                if(SumoStarted == 0)
                {
                if(Roman[playerid] == 0)
                {
                SendClientMessageToAll(0xFFFF00AA,\"Minigame játék elindult! Csatlakozásért használad {ff0000}/minigame!\");
                }
                minid[playerid] = 0;
      SetPlayerVirtualWorld(playerid,5);
      SumoStarted=1;
                InSumo[playerid] = 1;
                SumoSpawn=2;
                SumoTimer = SetTimer(\"StartSumo\",600,1);
                SumoSec = 30;
                TogglePlayerControllable(playerid,0);
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                SumoPlayers = 1;
                }else
                if(SumoStarted == 1)
                {
                SumoPlayers++;
                if(SumoSpawn == 2)
                {
                SumoSpawn=3;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 3)
                {
                SumoSpawn=4;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 4)
                {
                SumoSpawn=5;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 5)
                {
                SumoSpawn=6;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 6)
                {
                SumoSpawn=7;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 7)
                {
                SumoSpawn=8;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 8)
                {
                SumoSpawn=9;
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                TogglePlayerControllable(playerid,0);
                }else
                if(SumoSpawn == 9)
                {
                SumoSpawn=10;
                KillTimer(SumoTimer);
                PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
                InSumo[playerid] = 1;
                SumoStarted = 2;
                SendClientMessageToAll(0xAA3333AA,\"{cccccc}Kiestél a játéból! {3399ff}Car Sumo Minigame {cccccc}elíndult!\");
                for(new i = 0; i < GetMaxPlayers(); i++)
            {
            if(InSumo == 1)
            {
                           TogglePlayerControllable(i,1);
                           GameTextForPlayer(i,\"~r~~h~Kiestél!\",3000,3);
                           SetTimerEx(\"Eliminat\",500,0,\"i\",i);
                return 1;
            }
            return 1;
        }
        }
        }else SendClientMessage(playerid,0xFF0000AA,\"A Minigame már elindult!\");
        }else SendClientMessage(playerid,0xFF0000AA,\"Már benne vagy a Minigameban kilépéshez /exitminigame!\");
return 1;
}
if (strcmp(\"/exitminigame\", cmdtext, true, 10) == 0)
{
if(minid[playerid] == -1) return SendClientMessage(playerid,0xFFFF00AA,\"Nem vagy Minigámeban!\");
        minid[playerid] = -1;
        SetPlayerVirtualWorld(playerid,0);
for(new i = 0; i < GetMaxPlayers(); i++)
        {
        if(InSumo == 1)
        {
new Float:x,Float:y,Float:z;
        GetPlayerPos(i,x,y,z);
        SetPlayerPos(i,x,y,z+1);
        DestroyVehicle(SumoCar);
        SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
        KillTimer(SumoTimer);
        InSumo =0;
        TogglePlayerControllable(i,1);
        }
        }
        SumoStarted=0;
SpawnPlayer(playerid);
return SendClientMessage(playerid,0xFFFF00AA,\"Kiléptél a Minigámebõl.\");
        }else if(minid[playerid] != -1) return SendClientMessage(playerid,0xFF0000AA,\"Minigámeben nem használhatsz parancsokat Kilépéshez: /exitminigame\");
    return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    if(InSumo[playerid] == 1)
    {
    DestroyVehicle(SumoCar[playerid]);
    SumoPlayers--;
    InSumo[playerid] = 0;
    new string [1900];
    if(Roman[playerid] == 0)
    if(SumoPlayers == 1)
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(InSumo == 1)
    {
    if(Roman[playerid] == 0)
    {
    format(string, sizeof(string), \"%s Megnyerte a minigamet\", Name(i),ScoreWin,CashWin);
    SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
    }
    SendClientMessageToAll(red,string);
    SetPlayerScore(i,GetPlayerScore(i)+ScoreWin);
    GivePlayerMoney(i,CashWin);
    SumoPlayers = 0;
    InSumo[playerid] = 0;
    SumoStarted = 0;
    new Float:x,Float:y,Float:z;
    GetPlayerPos(i,x,y,z);
    SetPlayerPos(i,x,y,z+1);
    DestroyVehicle(SumoCar);
    SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
    TogglePlayerControllable(i,1);
    SetPlayerVirtualWorld(playerid,0);
minid[playerid] = -1;
InSumo = 0;
    }
    }
    }
    }
    return 1;
}
public OnPlayerSpawn(playerid)
{
    switch(minid[playerid])
    {
         case 0: // 0-ás azonosítószámú dm zónához tartozó tevékenységek
         {
         InSumo[playerid] =0;
         if(SUMO[playerid]==1)
         {
         PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0);
         }
         return 1;
}
    }
    return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(InSumo[playerid] == 1)
    {
        PutPlayerInVehicle(playerid,SumoCar[playerid],0);
    }
    return 1;
}
forward StartSumo(playerid);
public StartSumo(playerid)
{
        if(SumoSec > 1)
        {
                new time;
                new strec[128];
                SumoSec--;
                time = (SumoSec);
                format(strec, sizeof(strec), \"~h~~r~Minigame Kezdés %d\", time);
                for(new i = 0; i < GetMaxPlayers(); i++)
        {
        if(InSumo == 1)
        {
                GameTextForPlayer(i, strec, 3000, 3);
                }
                }
        }
        if(SumoSec == 1)
        {
                SumoSec = 0;
                if(SumoPlayers >= 2)
                {
                for(new i = 0; i < GetMaxPlayers(); i++)
        {
        if(InSumo == 1)
        {
                GameTextForPlayer(i, \"~h~~w~- START -\", 3000, 3);
                KillTimer(SumoTimer);
                TogglePlayerControllable(i,1);
 
                SumoStarted=2;
                SetTimerEx(\"Eliminat\",500,0,\"i\",i);
                }
                }
                }else
                if(SumoPlayers < 2)
                {
        for(new i = 0; i < GetMaxPlayers(); i++)
        {
        if(InSumo == 1)
        {
        new Float:x,Float:y,Float:z;
        GetPlayerPos(i,x,y,z);
        SetPlayerPos(i,x,y,z+1);
        DestroyVehicle(SumoCar);
        SetTimerEx(\"SpawnPP\",1000,0,\"i\",i);
                KillTimer(SumoTimer);
                InSumo =0;
                TogglePlayerControllable(i,1);
                }
                }
                SumoStarted=0;
                SetPlayerVirtualWorld(playerid,0);
      minid[playerid] = -1;
      if(Roman[playerid] == 0)
                {
                SendClientMessage(playerid,0xFF0000AA,\"A Derby Minigame befejezdõdõtt! Indok: Legalább 2 játékos szûkséges!\");
                SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484);
                }
                }
                }
                return 1;
}
stock Name(playerid)
{
        new name[24];
        GetPlayerName(playerid,name,24);
        return name;
}

6
Segítségkérés / Warning obiject hiba!Help!!
« Dátum: 2013. február 03. - 21:38:01 »
Van egy problámám akarmijen obijektet teszek be warningol a samp már probáltam mindenel CreateDynamicObject,  CreateDynamicObjectEx, CreateObject külön FS be tettem és ha berakok a szerora egy mappot átkonvertálva akor amikor oda megyek ahol az obijekt van akor warningot ír és kidob a szerorol
It egy kép
\"width=500http://kepfeltoltes.hu/130203/1220753169sa-mp-006_www.kepfeltoltes.hu_.png[/img]
Ezeket írja ki és kidob utána
THX ELÕREIS A SEGITSÉGET

7
Segítségkérés / Unnban és Házrendszer HELP!!!
« Dátum: 2013. február 01. - 18:33:18 »
HI
Megvan a Rupert Házrendszere és abba az kéne hogy a /housemenu parancsot csak a tulaj használhasa ezt a parancsot én tetem belle és ha nem tulaj akor írjon ki egy üzenetet, hogy Nem a te házad
És az unbannal aval csak anyi kéne hogy tudjaik a szerveren ip unbant adni és ne kejen belépjek rcon ba.
Nekem van egy de ez nem unbanolya ip röl
 
CMD:unbanip(playerid,params[])
{
   new string[128];
   if(!IsPlayerLAdmin(playerid)) return SendClientMessage(playerid, 0xFB0000FF,\"Nem vagy admin\");
   if(sscanf(params,\"u\", params)) return SendClientMessage(playerid, 0xFF0000AA,\"HASZNÁLAT: /unbanip [iP]\");
   format(string, sizeof(string), \"unbanip %s\", params);
   SendRconCommand(string);
   SendRconCommand(\"reloadbans\");
   SendClientMessage(playerid,0x33AA33AA,\"IP cím unbannolva.\");
   return 1;
}

 
Ez miért nem jó
THX ELÕREIS A SEGITSÉGET

8
Segítségkérés / Mentés!!!!
« Dátum: 2013. január 30. - 13:07:56 »
Nos nekem ojan kéne, hogy ha belép dm be akor mentse el a pozicioját és a skinjét meg a fegyvereit es ha kilép dm-böl akor ezeket töltse vissza de ezt sehogyse tom megcsinálni
 
new PSkin[MAX_PLAYERS], Float:pX[MAX_PLAYERS], Float:pY[MAX_PLAYERS], Float:pZ[MAX_PLAYERS], pWeapons[MAX_PLAYERS][13][2];
stock SaveItems(playerid)
{
     GetPlayerSkin(playerid, PSkin[playerid]);
     GetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]);
     for(new i; i <13; i++)
     {
     GetPlayerWeaponData(playerid, pWeapons[playerid][0] , pWeapons[playerid][1] );
     }
     return 1;
}
stock LoadItems(playerid)
{
     ResetPlayerWeapons(playerid); //Letörli a DM ben kapott fegyvereket
     SetPlayerSkin(playerid, PSkin[playerid]);
     SetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]);
     for(new i; i<13; i++)
     {
     GivePlayerWeapon(playerid,  pWeapons[playerid][0], pWeapons[playerid][1]);
     }
     return 1;
}

 
van ez a kod ha igy vann akor complirezni de igy az a baj hogy nem menti el azokat amiket kell
Ésha oda irom a SaveItems(playerid) a dm be csatlakozó parancshoz és a kilépéshez LoadItems(playerid) akor meg erroroz a pawno.
Mi lehet a baj ?
THX ELÕREIS A VÁLASZOKAT

9
Segítségkérés / Úszás Tiltása
« Dátum: 2013. január 28. - 15:56:03 »
Van egy titanic minigamem és abba az kéne, hogyha a player besik a vizbe akor kiesen a minigámeböl

10
Segítségkérés / Ladmin4v2 Segitség!!!!
« Dátum: 2013. január 26. - 20:11:43 »
Nos van a ladminban, hogyha 5-ös admin vagy a többi admin parancsai rád imunisak ezt hogy kell megcsinálni csak 10 es adminok legyenek imunisak a többi admin parancsaijra

11
Segítségkérés / Object HIBA!!!!
« Dátum: 2013. január 23. - 16:22:35 »
Mért van az, hogyha az obijekteket átraok egy fs be akor nem jelenek meg de ha a gamemodba rakom akor igen ez mért van CreateDynamicObject et használok és ugyse jelenek meg ha fs be teszem öket

12
Szkript kérések / Napilap készitése
« Dátum: 2013. január 22. - 14:04:36 »
Ugy akarom hogy a szeron legyen egy ujság rendszer és ezt lehesen szerkeszteni a szeron pl a player beirja, hogy /ujsag és egy dialog jelenik meg  DIALOG_STYLE_MSGBOX és ami a dialogban van azt lehesen kitörölni és mást irni belle és ezt a játékbe lehesen
Vagyis egy szerkeszthetõ dialog ingámebe
Na ezt senkise tudja, hogy, hogy kell

13
Segítségkérés / Pickup probléma
« Dátum: 2013. január 21. - 23:03:27 »
Nos csináltam egy ojant, hogy ha belemegy egy adot pickupba akor elöjön egy dialog és ot tud venni fegyvereket ez a fegyverboltban van de az a bajom velle hogyha belemegy a pickupba megveszi a fegyot és kilép a dialogbol a pickup eltünik ez miért van és hogy megit elöjöjön ki kell menni az épületböl és visza akor elöjon de nem lehetne ugy megcsinálni hogy ne tünyön el a pickup

14
Segítségkérés / Ladmin4v2 Hiba!!!!
« Dátum: 2013. január 21. - 15:48:18 »
Nos van nekem a Ladmin4v2 és egy kicsit átirtam a leveleket fenneb vitem és néhány üzenetet is átirtam régeb a parancsok 1-5 ig voltak és én 1-10 ig csináltam ez edig jó is ment nem volt benne bug de ugy 7 hétel ezelöt bebugolt. Ha regizek a szerveren és adok magamnak admint edig semmi baj tökéletesen müködik de ha kilépek és vissza akor már nem enged be loginolni fent irja, hogy ez a név regizve van és amikor beirom, hogy /login és a jelszó azt irja hogy a jelszó hibá.
Ezt töbszöris kiprobáltam de és ugyan igy jártam jó jelszot irok be de nem hagy beloginolni
Mi lehet a baj ha valaki tudja pls irja le.
Köszönöm elõre is.

15
Segítségkérés / Pawno HIBA
« Dátum: 2013. január 19. - 16:29:12 »
Van egy házrendszerem és ugy akarom hogy ne lehesenek benne a parancsok használni de valamiért a pawno hibákat ad ki és sehogyse tudom megoldani
 
C:\\Documents and Settings\\Robi\\Desktop\\Uj szerver\\filterscripts\\rupHouse.pwn(1768) : error 010: invalid function or declaration
C:\\Documents and Settings\\Robi\\Desktop\\Uj szerver\\filterscripts\\rupHouse.pwn(1769) : error 010: invalid function or declaration
C:\\Documents and Settings\\Robi\\Desktop\\Uj szerver\\filterscripts\\rupHouse.pwn(1771) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
3 Errors.

 
It van az ahol az error van
 
}
CMD:exitikea(playerid, params[])
{
        if(houseid[playerid] == -1) return SendClientMessage(playerid,0xFFFF00AA,\"Nem vagy ikeában!\");
        hazban[playerid] = 0;
        houseid[playerid] = -1;
        SpawnPlayer(playerid);
        SetPlayerVirtualWorld(playerid,0);
        return SendClientMessage(playerid,0xFFFF00AA,\"Kiléptél az ikeábol.\");
        }else if(houseid[playerid] != -1) return SendClientMessage(playerid,0xFFFF00AA,\"Nem használhatsz parancsokat a Házban\");
        return 1;
)

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