The Land Of Death - A SA:MP Zombie gamemode (rescript)
I never got in touch of a zombie gamemode but i grabbed one from the San Andreas Multiplayer Forums and made an own zombie script based of the script from the forums. Now it's an open source zombie gamemode with several features. Upcoming edits are planned and ofcourse more stuff.
* SQL Register/login * Inventory system * Loot system * Needs system (hunger, sleep, thirst) * Crafting (chop trees, mine iron, and more stuff) * Fishing * Deers (for meat !!) * Experience/level system * and ofcourse ZOMBIES (npc's So in case you wonder .. what do i need to run this mode ?Plugins:
- MySQL Plugin R39-2 (or older - without a database you can't run this.)
- FCNPC (for the zombies)
- MapAndreas (mostly for dropping items)
- Sscanf
Includes:
Basic defines/settings:#define GNAME "TLOD 1.0"
#define MNAME "|-[LandDeath]-|"
#define HNAME "The Land Of Death"
#define MAX_ZOMBIES 100
#define MAX_PLAYERS 30
#define MAX_VEHICLES 50
#define MAX_INV_ITEMS 50
//try to do the total amount less than 1000 (1000 = max objects)
#define MAX_ITEMS 350
#define MAX_DEERS 50
#define MAX_TREES 450
#define MAX_BOXES 100
//if you use SQL:
#define SQL_PASSWORD ""
#define SQL_USER "TLOD"
#define SQL_DB "TLOD"
#define SQL_SERVER "127.0.0.1"
stock CreateTree(model,Float:x,Float:y,Float:z);
stock CreateCar(model,Float:x,Float:y,Float:z,Float:rot);
stock CreateRandomItemInArea(Float: minX, Float: minY, Float: maxX, Float: maxY);
stock CreateItem(model,amount,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz);
stock CountInventoryItems(playerid);
stock DropAllItemsFromInventory(playerid);
stock RemoveItemFromInventory(playerid,slot,amount = 1);
stock DropItemFromInventory(playerid,slot);
stock MoveItemsInInventory(playerid,startslot);
stock AddItemToInventory(playerid,modelid,amount = 1);
stock IsItemInInventory(playerid,modelid,amount = 1);
stock GetItemInInventory(playerid,modelid);
stock SavePlayerInventory(playerid);
public OnPlayerInventoryLoad(playerid)