Szerző Téma: SinglePlayer csalások SAMP ba  (Megtekintve 748 alkalommal)

SinglePlayer csalások SAMP ba
« Dátum: 2014. május 28. - 20:48:06 »
0 Show voters
Sziasztok
Ma írtam egy FS-t aminek az a lényege,hogy a SinglePlayerben található csalásokat be lehessen írni SAMP ba is.Pl: Hesoyam akkor kapsz pénzt,páncélt,életet  :)
-----------------------------------------------------------------------------------
Készítési idõ: 2 óra(mivelhát eléggé kezdõ vagyok scriptelésben)
Szükséges függvény: fixchars.h(Az ékezetes Gametext miatt)  http://www.solidfiles.net/d/ikKV/fixchars.h
Letöltés: http://www.solidfiles.com/d/fbbeed3c5e/cheats.pwn
Bug: Szerintem nincs
UI: Néhány csalás nem úgy van az FS ben mint a SP ben
 
//SinglePlayer Csalások by DragonSoul
//A nevemet innen nyugodtan ki lehet törölni
 
  #include <a_samp>
  #include <fixchars.h>
 
   #pragma tabsize 0
 
  #define INFINITY (Float:0x7F800000)
  #define GELTONA 0xFFFF00FF
  #define BALTA 0xFFFFFFFF
  #define COLOR_GREY 0xAFAFAFAA
  #define COLOR_WATERRR 0x7CFC00AA
  #define RED 0xE60000FF
  #define DARKGREY 0x696969FF
  #define WHITE  0xFFFFFFAA
 
   new UnderWater[MAX_PLAYERS];
   new pOxygenGlobal[MAX_PLAYERS];
   enum pInfo
   {
        bool:pFullClip
   };
 
   forward IsVehicleOccupied(vehicleid);
   #if defined FILTERSCRIPT
   public OnFilterScriptInit()
    {
print(\"\\n--------------------------------------\");
print(\" Single Player csalások betöltve\");
print(\"--------------------------------------\\n\");
return 1;
   }
    public OnFilterScriptExit()
    {
return 1;
    }
    #endif
    public OnGameModeInit()
    {
    return 1;
    }
    public OnGameModeExit()
    {
return 1;
    }
    public OnPlayerRequestClass(playerid, classid)
    {
return 1;
    }
    public OnPlayerConnect(playerid)
    {
    UnderWater[playerid]=0;
return 1;
    }
    public OnPlayerDisconnect(playerid, reason)
    {
    UnderWater[playerid]=0;
return 1;
    }
    public OnPlayerSpawn(playerid)
    {
    UnderWater[playerid]=0;
return 1;
    }
    public OnPlayerDeath(playerid, killerid, reason)
    {
     UnderWater[playerid]=0;
     return 1;
    }
    public OnVehicleSpawn(vehicleid)
    {
return 1;
    }
    public OnVehicleDeath(vehicleid, killerid)
    {
       return 1;
     }
     public OnPlayerText(playerid, text[])
    {
       return 1;
     }
    /*=======================================================================
    |                     (((((+Parancsok+)))))                              |
    =========================================================================*/
    public OnPlayerCommandText(playerid, cmdtext[])
    {
if (strcmp(\"/cheats\", cmdtext,true, 10) == 0)//Csalások listája
{
SendClientMessage(playerid,RED,\"|==================================|\");
SendClientMessage(playerid,RED,\"|Csalások listája |\");
SendClientMessage(playerid,RED,\"|==================================|\");
SendClientMessage(playerid,RED,\"Írd be /cheat1 a normál csalásokhoz\");
SendClientMessage(playerid,RED,\"Írd be /cheat2 a banda/rendõr csalásokhoz\");
SendClientMessage(playerid,RED,\"Írd be /cheat3 a jármû csalásokhoz\");
SendClientMessage(playerid,RED,\"Írd be /cheat4 a normál csalásokhoz(2.oldal)\");
return 1;
}
if (strcmp(\"/cheat1\", cmdtext,true, 10) == 0)// Csalások listája 1
{
SendClientMessage(playerid,DARKGREY,\"/LXGIWYL = Egyszerû fegyverek\");
SendClientMessage(playerid,DARKGREY,\"/PROFESSIONALSKIT = Közepes erõsségû fegyverek\");
SendClientMessage(playerid,DARKGREY,\"/UZUMYMW = Legjobb fegyverek\");
SendClientMessage(playerid,DARKGREY,\"/HESOYAM = Élet,Páncél,250000$\");
SendClientMessage(playerid,DARKGREY,\"/WANRLTW  = Örök töltény\");
SendClientMessage(playerid,DARKGREY,\"/CVWKXAM = Örök levegõ a víz alatt\");
SendClientMessage(playerid,DARKGREY,\"/MUNASEF = Részeg mód\");
SendClientMessage(playerid,DARKGREY,\"/BAGUVIX = Örök élet(vagy a másik: /god)\");
return 1;
}
if (strcmp(\"/cheat2\", cmdtext,true, 10) == 0)// Csalások listája 2
{
SendClientMessage(playerid,WHITE,\"/TURNUPTHEHEAT = Két csillaggal több körözés\");
SendClientMessage(playerid,WHITE,\"/TURNDOWNTHEHEAT = 0 körözés\");
SendClientMessage(playerid,WHITE,\"/BRINGITON = Hatos körözés\");
return 1;
}
if (strcmp(\"/cheat3\", cmdtext,true, 10) == 0)//Csalások listája 3
{
SendClientMessage(playerid,RED,\"/AIWPRTON = Tank lehívása, /TRUEGRIME = Kukásautó lehívása \");
SendClientMessage(playerid,RED,\"/OLDSPEEDDEMON = BloodRing Blanger, /RZHSUEW = Golfautó lehívása\");
SendClientMessage(playerid,RED,\"/JQNTDMH = Terepjáró lehívása, /JUMPJET = Hydra lehívása\");
SendClientMessage(playerid,RED,\"/VROCKPOKEY = Versenyautó lehívása,  /KGGGDKP = Vizen/Földön járó jármû\");
SendClientMessage(playerid,RED,\"/VPJTQWV = Versenyautó 2 lehívása, /AIYPWZQP = Kapsz ejtõernyõt\");
SendClientMessage(playerid,RED,\"/WHERESTHEFUNERAL = Halottaskocsi lehívása, /yecgaa = Kapsz JetPacket \");
SendClientMessage(playerid,RED,\"/FOURWHEELFUN = Quad lehívása, /MONSTERMASH = Monster lehívása\");
SendClientMessage(playerid,RED,\"/FLYINGTOSTUNT = Stunt repülõ lehívása\");
SendClientMessage(playerid,RED,\"/CELEBRITYSTATUS = Limuzin lehívása, /OHDUDE = Hunter lehívása\");
return 1;
}
if (strcmp(\"/cheat4\", cmdtext,true, 10) == 0)//Csalások listája 4
{
SendClientMessage(playerid,WHITE,\"/PLEASANTLYWARM = Napos idõ, /TOODAMNHOT = Nagyon napos idõ \");
SendClientMessage(playerid,WHITE,\"/ALNSFMZO = Felhõs idõ, /AUIFRVQS = Esõs idõ\");
SendClientMessage(playerid,WHITE,\"/CFVFGMJ = Ködös idõ, /OFVIAC = Narancssárga ég\");
SendClientMessage(playerid,WHITE,\"/SCOTTISHSUMMER = Viharos idõ,  /CWJXUOC = Homokvihar\");
return 1;
}
if (strcmp(\"/hesoyam\", cmdtext, true, 10) == 0)
{
SetPlayerArmour(playerid, 100.0);
RepairVehicle(GetPlayerVehicleID(playerid));
    SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
GivePlayerMoney(playerid, 250000);
SetPlayerHealth(playerid, 100.0);
    GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/cvwkxam\", cmdtext, true, 10) == 0)
        {
        for(new j = 0;j<MAX_PLAYERS;j++)
        {
                if(IsPlayerConnected(j))
                 {
    new Float:pos[3];
    new Float:pHealthFLOAT;
    GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
    SetPlayerHealth(playerid, INFINITY);
    GetPlayerPos(j, pos[0], pos[1], pos[2]);
   
    if (UnderWater[j]==0){
        if (pos[2]<-2.0){
        GetPlayerHealth(j,pHealthFLOAT);
        pOxygenGlobal[j]=floatround(pHealthFLOAT, floatround_tozero);
        UnderWater[j]=1;
        SendClientMessage(j, COLOR_WATERRR, \"Nem vagy vízalatt!\");
        }
    }
        else
     if (UnderWater[j]==1)
        {
        if (pos[2]>=0.0)
                {
        new Float:pHealthFLOATOUT;
        pHealthFLOATOUT = float(pOxygenGlobal[j]);
        SetPlayerHealth(j,pHealthFLOATOUT);
        UnderWater[j]=0;
        SendClientMessage(j, COLOR_WATERRR, \"Nem vagy vízalatt!\");
        }
                else
        SetPlayerHealth(j,1000.0);
       }
      }
                return 1;
          }
            }
if (strcmp(\"/munasef\", cmdtext, true, 10) == 0)
{
SetPlayerDrunkLevel (playerid, 4000);
SetPlayerHealth(playerid, 50);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/baguvix\", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, INFINITY);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
    }
if (strcmp(\"/wanrltw \", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 5, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 22, 9999);
GivePlayerWeapon(playerid, 25, 9999);
GivePlayerWeapon(playerid, 30, 9999);
GivePlayerWeapon(playerid, 34, 999999999);
GivePlayerWeapon(playerid, 35, 999999999);
GivePlayerWeapon(playerid, 18, 999999999);
GivePlayerWeapon(playerid, 41, 999999999);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
   return 1;
   }
if (strcmp(\"/lxgiwyl\", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 5, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 22, 200);
GivePlayerWeapon(playerid, 25, 250);
GivePlayerWeapon(playerid, 30, 500);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 18, 10);
GivePlayerWeapon(playerid, 41, 5);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/professionalskit\", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 4, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 26, 250);
GivePlayerWeapon(playerid, 32, 150);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 37, 100);
GivePlayerWeapon(playerid, 16, 5);
    GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/uzumymw\", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 9, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 23, 200);
GivePlayerWeapon(playerid, 28, 250);
GivePlayerWeapon(playerid, 27, 150);
GivePlayerWeapon(playerid, 36, 5);
GivePlayerWeapon(playerid, 39, 5);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/aezakmi\", cmdtext, true, 10) == 0)
{
SetPlayerWantedLevel(playerid, 0);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
   }
   if (strcmp(\"/osrblhh\", cmdtext, true, 10) == 0)
{
SetPlayerWantedLevel(playerid, 2);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
   }
   if (strcmp(\"/ljspqk\", cmdtext, true, 10) == 0)
{
SetPlayerWantedLevel(playerid, 6);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
   }
         if (strcmp(\"/AIWPRTON\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(432, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/pdnejoh\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(504, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/JQNTDMH\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(489, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/VROCKPOKEY\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(502, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/VPJTQWV\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(503, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/AQTBCODX \", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(442, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/CELEBRITYSTATUS\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(409, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/TRUEGRIME\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(408, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/RZHSUEW\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(457, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/JUMPJET\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(520, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/KGGGDKP\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(593, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/AIYPWZQP\", cmdtext, true, 10) == 0)
        {
        GivePlayerWeapon(playerid, 46, 1);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/YECGAA\", cmdtext, true, 10) == 0)
{
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/OHDUDE\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(425, X+5, Y, Z, 0, -1, 50, -1);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/FOURWHEELFUN\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(471, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/AMOMHRER\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(514, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/ITSALLBULL\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(486, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/FLYINGTOSTUNT \", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(513, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/MONSTERMASH \", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(556, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
           if(strcmp(cmdtext, \"/PLEASANTLYWARM\", true) == 0)
    {
        SetPlayerWeather(playerid, 10);
        GameTextForPlayer(playerid,\"Cheat Activated\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/TOODAMNHOT\", true) == 0)
    {
        SetPlayerWeather(playerid, 11);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/ALNSFMZO\", true) == 0)
    {
        SetPlayerWeather(playerid, 11);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/AUIFRVQS\", true) == 0)
    {
        SetPlayerWeather(playerid, 16);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/CFVFGMJ\", true) == 0)
    {
        SetPlayerWeather(playerid, 09);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/OFVIAC\", true) == 0)
    {
        SetPlayerWeather(playerid, 24);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/SCOTTISHSUMMER\", true) == 0)
    {
        SetPlayerWeather(playerid, 08);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/CWJXUOC\", true) == 0)
    {
        SetPlayerWeather(playerid, 19);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}
 
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
« Utoljára szerkesztve: 2014. május 28. - 20:55:54 írta DragonSoul »

Nem elérhető EntoX

  • 195
    • Profil megtekintése
SinglePlayer csalások SAMP ba
« Válasz #1 Dátum: 2014. május 28. - 20:57:41 »
0 Show voters
Jó lehet! Majd kipróbálom! :)

SinglePlayer csalások SAMP ba
« Válasz #2 Dátum: 2014. május 28. - 21:39:17 »
0 Show voters
« Utoljára szerkesztve: 2014. május 28. - 21:43:42 írta citromhun »

Nem elérhető kurta999

  • 2759
  • Éllő fédisznó
    • Profil megtekintése
SinglePlayer csalások SAMP ba
« Válasz #3 Dátum: 2014. május 28. - 21:52:45 »
+1 Show voters
Idézetet írta: citromhun date=1401305957\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"48438\" data-ipsquote-contentclass=\"forums_Topic
Biztos?
http://pastebin.com/GM4cuzyt
http://forum.sa-mp.com/showthread.php?t=299773
Készítette: Aira, [RaZ]Hal_Moore
 


           if(strcmp(cmdtext, \"/PLEASANTLYWARM\", true) == 0)
    {
        SetPlayerWeather(playerid, 10);
        GameTextForPlayer(playerid,\"Cheat Activated\",2500,1);
        return 1;
    }
 
[/quote]

SinglePlayer csalások SAMP ba
« Válasz #4 Dátum: 2014. május 28. - 21:59:07 »
0 Show voters


if (strcmp(\"/cheat4\", cmdtext,true, 10) == 0)//Csalások listája 4
{
SendClientMessage(playerid,WHITE,\"/PLEASANTLYWARM = Napos idõ);
        }

 
[/quote]

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
SinglePlayer csalások SAMP ba
« Válasz #5 Dátum: 2014. május 28. - 23:14:22 »
0 Show voters
[gmod]Máskor ne észrevehetõen fordítsd le a kódot![/gmod]

SinglePlayer csalások SAMP ba
« Válasz #6 Dátum: 2014. május 28. - 20:48:06 »
0 Show voters
Sziasztok
Ma írtam egy FS-t aminek az a lényege,hogy a SinglePlayerben található csalásokat be lehessen írni SAMP ba is.Pl: Hesoyam akkor kapsz pénzt,páncélt,életet  :)
-----------------------------------------------------------------------------------
Készítési idõ: 2 óra(mivelhát eléggé kezdõ vagyok scriptelésben)
Szükséges függvény: fixchars.h(Az ékezetes Gametext miatt)  http://www.solidfiles.net/d/ikKV/fixchars.h
Letöltés: http://www.solidfiles.com/d/fbbeed3c5e/cheats.pwn
Bug: Szerintem nincs
UI: Néhány csalás nem úgy van az FS ben mint a SP ben
 
//SinglePlayer Csalások by DragonSoul
//A nevemet innen nyugodtan ki lehet törölni
 
  #include <a_samp>
  #include <fixchars.h>
 
   #pragma tabsize 0
 
  #define INFINITY (Float:0x7F800000)
  #define GELTONA 0xFFFF00FF
  #define BALTA 0xFFFFFFFF
  #define COLOR_GREY 0xAFAFAFAA
  #define COLOR_WATERRR 0x7CFC00AA
  #define RED 0xE60000FF
  #define DARKGREY 0x696969FF
  #define WHITE  0xFFFFFFAA
 
   new UnderWater[MAX_PLAYERS];
   new pOxygenGlobal[MAX_PLAYERS];
   enum pInfo
   {
        bool:pFullClip
   };
 
   forward IsVehicleOccupied(vehicleid);
   #if defined FILTERSCRIPT
   public OnFilterScriptInit()
    {
print(\"\\n--------------------------------------\");
print(\" Single Player csalások betöltve\");
print(\"--------------------------------------\\n\");
return 1;
   }
    public OnFilterScriptExit()
    {
return 1;
    }
    #endif
    public OnGameModeInit()
    {
    return 1;
    }
    public OnGameModeExit()
    {
return 1;
    }
    public OnPlayerRequestClass(playerid, classid)
    {
return 1;
    }
    public OnPlayerConnect(playerid)
    {
    UnderWater[playerid]=0;
return 1;
    }
    public OnPlayerDisconnect(playerid, reason)
    {
    UnderWater[playerid]=0;
return 1;
    }
    public OnPlayerSpawn(playerid)
    {
    UnderWater[playerid]=0;
return 1;
    }
    public OnPlayerDeath(playerid, killerid, reason)
    {
     UnderWater[playerid]=0;
     return 1;
    }
    public OnVehicleSpawn(vehicleid)
    {
return 1;
    }
    public OnVehicleDeath(vehicleid, killerid)
    {
       return 1;
     }
     public OnPlayerText(playerid, text[])
    {
       return 1;
     }
    /*=======================================================================
    |                     (((((+Parancsok+)))))                              |
    =========================================================================*/
    public OnPlayerCommandText(playerid, cmdtext[])
    {
if (strcmp(\"/cheats\", cmdtext,true, 10) == 0)//Csalások listája
{
SendClientMessage(playerid,RED,\"|==================================|\");
SendClientMessage(playerid,RED,\"|Csalások listája |\");
SendClientMessage(playerid,RED,\"|==================================|\");
SendClientMessage(playerid,RED,\"Írd be /cheat1 a normál csalásokhoz\");
SendClientMessage(playerid,RED,\"Írd be /cheat2 a banda/rendõr csalásokhoz\");
SendClientMessage(playerid,RED,\"Írd be /cheat3 a jármû csalásokhoz\");
SendClientMessage(playerid,RED,\"Írd be /cheat4 a normál csalásokhoz(2.oldal)\");
return 1;
}
if (strcmp(\"/cheat1\", cmdtext,true, 10) == 0)// Csalások listája 1
{
SendClientMessage(playerid,DARKGREY,\"/LXGIWYL = Egyszerû fegyverek\");
SendClientMessage(playerid,DARKGREY,\"/PROFESSIONALSKIT = Közepes erõsségû fegyverek\");
SendClientMessage(playerid,DARKGREY,\"/UZUMYMW = Legjobb fegyverek\");
SendClientMessage(playerid,DARKGREY,\"/HESOYAM = Élet,Páncél,250000$\");
SendClientMessage(playerid,DARKGREY,\"/WANRLTW  = Örök töltény\");
SendClientMessage(playerid,DARKGREY,\"/CVWKXAM = Örök levegõ a víz alatt\");
SendClientMessage(playerid,DARKGREY,\"/MUNASEF = Részeg mód\");
SendClientMessage(playerid,DARKGREY,\"/BAGUVIX = Örök élet(vagy a másik: /god)\");
return 1;
}
if (strcmp(\"/cheat2\", cmdtext,true, 10) == 0)// Csalások listája 2
{
SendClientMessage(playerid,WHITE,\"/TURNUPTHEHEAT = Két csillaggal több körözés\");
SendClientMessage(playerid,WHITE,\"/TURNDOWNTHEHEAT = 0 körözés\");
SendClientMessage(playerid,WHITE,\"/BRINGITON = Hatos körözés\");
return 1;
}
if (strcmp(\"/cheat3\", cmdtext,true, 10) == 0)//Csalások listája 3
{
SendClientMessage(playerid,RED,\"/AIWPRTON = Tank lehívása, /TRUEGRIME = Kukásautó lehívása \");
SendClientMessage(playerid,RED,\"/OLDSPEEDDEMON = BloodRing Blanger, /RZHSUEW = Golfautó lehívása\");
SendClientMessage(playerid,RED,\"/JQNTDMH = Terepjáró lehívása, /JUMPJET = Hydra lehívása\");
SendClientMessage(playerid,RED,\"/VROCKPOKEY = Versenyautó lehívása,  /KGGGDKP = Vizen/Földön járó jármû\");
SendClientMessage(playerid,RED,\"/VPJTQWV = Versenyautó 2 lehívása, /AIYPWZQP = Kapsz ejtõernyõt\");
SendClientMessage(playerid,RED,\"/WHERESTHEFUNERAL = Halottaskocsi lehívása, /yecgaa = Kapsz JetPacket \");
SendClientMessage(playerid,RED,\"/FOURWHEELFUN = Quad lehívása, /MONSTERMASH = Monster lehívása\");
SendClientMessage(playerid,RED,\"/FLYINGTOSTUNT = Stunt repülõ lehívása\");
SendClientMessage(playerid,RED,\"/CELEBRITYSTATUS = Limuzin lehívása, /OHDUDE = Hunter lehívása\");
return 1;
}
if (strcmp(\"/cheat4\", cmdtext,true, 10) == 0)//Csalások listája 4
{
SendClientMessage(playerid,WHITE,\"/PLEASANTLYWARM = Napos idõ, /TOODAMNHOT = Nagyon napos idõ \");
SendClientMessage(playerid,WHITE,\"/ALNSFMZO = Felhõs idõ, /AUIFRVQS = Esõs idõ\");
SendClientMessage(playerid,WHITE,\"/CFVFGMJ = Ködös idõ, /OFVIAC = Narancssárga ég\");
SendClientMessage(playerid,WHITE,\"/SCOTTISHSUMMER = Viharos idõ,  /CWJXUOC = Homokvihar\");
return 1;
}
if (strcmp(\"/hesoyam\", cmdtext, true, 10) == 0)
{
SetPlayerArmour(playerid, 100.0);
RepairVehicle(GetPlayerVehicleID(playerid));
    SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
GivePlayerMoney(playerid, 250000);
SetPlayerHealth(playerid, 100.0);
    GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/cvwkxam\", cmdtext, true, 10) == 0)
        {
        for(new j = 0;j<MAX_PLAYERS;j++)
        {
                if(IsPlayerConnected(j))
                 {
    new Float:pos[3];
    new Float:pHealthFLOAT;
    GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
    SetPlayerHealth(playerid, INFINITY);
    GetPlayerPos(j, pos[0], pos[1], pos[2]);
   
    if (UnderWater[j]==0){
        if (pos[2]<-2.0){
        GetPlayerHealth(j,pHealthFLOAT);
        pOxygenGlobal[j]=floatround(pHealthFLOAT, floatround_tozero);
        UnderWater[j]=1;
        SendClientMessage(j, COLOR_WATERRR, \"Nem vagy vízalatt!\");
        }
    }
        else
     if (UnderWater[j]==1)
        {
        if (pos[2]>=0.0)
                {
        new Float:pHealthFLOATOUT;
        pHealthFLOATOUT = float(pOxygenGlobal[j]);
        SetPlayerHealth(j,pHealthFLOATOUT);
        UnderWater[j]=0;
        SendClientMessage(j, COLOR_WATERRR, \"Nem vagy vízalatt!\");
        }
                else
        SetPlayerHealth(j,1000.0);
       }
      }
                return 1;
          }
            }
if (strcmp(\"/munasef\", cmdtext, true, 10) == 0)
{
SetPlayerDrunkLevel (playerid, 4000);
SetPlayerHealth(playerid, 50);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/baguvix\", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, INFINITY);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
    }
if (strcmp(\"/wanrltw \", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 5, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 22, 9999);
GivePlayerWeapon(playerid, 25, 9999);
GivePlayerWeapon(playerid, 30, 9999);
GivePlayerWeapon(playerid, 34, 999999999);
GivePlayerWeapon(playerid, 35, 999999999);
GivePlayerWeapon(playerid, 18, 999999999);
GivePlayerWeapon(playerid, 41, 999999999);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
   return 1;
   }
if (strcmp(\"/lxgiwyl\", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 5, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 22, 200);
GivePlayerWeapon(playerid, 25, 250);
GivePlayerWeapon(playerid, 30, 500);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 18, 10);
GivePlayerWeapon(playerid, 41, 5);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/professionalskit\", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 4, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 26, 250);
GivePlayerWeapon(playerid, 32, 150);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 37, 100);
GivePlayerWeapon(playerid, 16, 5);
    GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/uzumymw\", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 9, 0x7FFFFFFF);
GivePlayerWeapon(playerid, 23, 200);
GivePlayerWeapon(playerid, 28, 250);
GivePlayerWeapon(playerid, 27, 150);
GivePlayerWeapon(playerid, 36, 5);
GivePlayerWeapon(playerid, 39, 5);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
}
if (strcmp(\"/aezakmi\", cmdtext, true, 10) == 0)
{
SetPlayerWantedLevel(playerid, 0);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
   }
   if (strcmp(\"/osrblhh\", cmdtext, true, 10) == 0)
{
SetPlayerWantedLevel(playerid, 2);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
   }
   if (strcmp(\"/ljspqk\", cmdtext, true, 10) == 0)
{
SetPlayerWantedLevel(playerid, 6);
GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
return 1;
   }
         if (strcmp(\"/AIWPRTON\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(432, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/pdnejoh\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(504, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/JQNTDMH\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(489, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/VROCKPOKEY\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(502, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/VPJTQWV\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(503, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/AQTBCODX \", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(442, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/CELEBRITYSTATUS\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(409, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/TRUEGRIME\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(408, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/RZHSUEW\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(457, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/JUMPJET\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(520, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/KGGGDKP\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(593, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/AIYPWZQP\", cmdtext, true, 10) == 0)
        {
        GivePlayerWeapon(playerid, 46, 1);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/YECGAA\", cmdtext, true, 10) == 0)
{
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/OHDUDE\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(425, X+5, Y, Z, 0, -1, 50, -1);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/FOURWHEELFUN\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(471, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/AMOMHRER\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(514, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/ITSALLBULL\", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(486, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/FLYINGTOSTUNT \", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(513, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
        if (strcmp(\"/MONSTERMASH \", cmdtext, true, 10) == 0)
        {
        new LVehicleID;
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        LVehicleID = CreateVehicle(556, X+5, Y, Z, 0, -1, 50, 99999999);
        SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
        }
           if(strcmp(cmdtext, \"/PLEASANTLYWARM\", true) == 0)
    {
        SetPlayerWeather(playerid, 10);
        GameTextForPlayer(playerid,\"Cheat Activated\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/TOODAMNHOT\", true) == 0)
    {
        SetPlayerWeather(playerid, 11);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/ALNSFMZO\", true) == 0)
    {
        SetPlayerWeather(playerid, 11);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/AUIFRVQS\", true) == 0)
    {
        SetPlayerWeather(playerid, 16);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/CFVFGMJ\", true) == 0)
    {
        SetPlayerWeather(playerid, 09);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/OFVIAC\", true) == 0)
    {
        SetPlayerWeather(playerid, 24);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/SCOTTISHSUMMER\", true) == 0)
    {
        SetPlayerWeather(playerid, 08);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
        if(strcmp(cmdtext, \"/CWJXUOC\", true) == 0)
    {
        SetPlayerWeather(playerid, 19);
        GameTextForPlayer(playerid,\"Csalás aktiválva\",2500,1);
        return 1;
    }
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}
 
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
« Utoljára szerkesztve: 2014. május 28. - 20:55:54 írta DragonSoul »

Nem elérhető EntoX

  • 195
    • Profil megtekintése
SinglePlayer csalások SAMP ba
« Válasz #7 Dátum: 2014. május 28. - 20:57:41 »
0 Show voters
Jó lehet! Majd kipróbálom! :)

SinglePlayer csalások SAMP ba
« Válasz #8 Dátum: 2014. május 28. - 21:39:17 »
0 Show voters
« Utoljára szerkesztve: 2014. május 28. - 21:43:42 írta citromhun »

Nem elérhető kurta999

  • 2759
  • Éllő fédisznó
    • Profil megtekintése
SinglePlayer csalások SAMP ba
« Válasz #9 Dátum: 2014. május 28. - 21:52:45 »
0 Show voters
Idézetet írta: citromhun date=1401305957\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"48438\" data-ipsquote-contentclass=\"forums_Topic
Biztos?
http://pastebin.com/GM4cuzyt
http://forum.sa-mp.com/showthread.php?t=299773
Készítette: Aira, [RaZ]Hal_Moore
 


           if(strcmp(cmdtext, \"/PLEASANTLYWARM\", true) == 0)
    {
        SetPlayerWeather(playerid, 10);
        GameTextForPlayer(playerid,\"Cheat Activated\",2500,1);
        return 1;
    }
 
[/quote]

SinglePlayer csalások SAMP ba
« Válasz #10 Dátum: 2014. május 28. - 21:59:07 »
0 Show voters


if (strcmp(\"/cheat4\", cmdtext,true, 10) == 0)//Csalások listája 4
{
SendClientMessage(playerid,WHITE,\"/PLEASANTLYWARM = Napos idõ);
        }

 
[/quote]

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
SinglePlayer csalások SAMP ba
« Válasz #11 Dátum: 2014. május 28. - 23:14:22 »
0 Show voters
[gmod]Máskor ne észrevehetõen fordítsd le a kódot![/gmod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal