Esetleg belerakhatod a fejes, lábas rendszert egy hibátlan mod omba is, amibe írtam is valamit és hibátlan.
Ebbe kéne belerakni:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define FEHER -1
main()
{
print(\"\\n----------------------------------\");
print(\" [HUN]War szerver by HunGamer1000\");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
SetGameModeText(\"[HUN]War\");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
CreateObject(983, 1539.6, -1614.6, 16.6, 0, 0, 0);
CreateObject(983, 1539.6, -1608.2, 16.6, 0, 0, 0);
CreateObject(983, 1539.6, -1605.6, 16.6, 0, 0, 0);
CreateObject(983, 1542.8, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1549.1, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1555.4, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1561.7, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1568.1, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1574.5, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1580.9, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1587.3, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1593.7, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1600.1, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1604.9, -1602.4, 16.6, 0, 0, 270);
CreateObject(983, 1542.8, -1617.8, 16.6, 0, 0, 270);
CreateObject(983, 1546.4, -1617.8, 16.6, 0, 0, 270);
CreateObject(983, 1608.1, -1605.6, 16.6, 0, 0, 0);
CreateObject(983, 1608.1, -1612, 16.6, 0, 0, 0);
CreateObject(983, 1608.1, -1618.4, 16.6, 0, 0, 0);
CreateObject(983, 1608.1, -1624.8, 16.6, 0, 0, 0);
CreateObject(983, 1608.1, -1631.2, 16.6, 0, 0, 0);
CreateObject(983, 1608.1, -1634.9, 16.6, 0, 0, 0);
CreateObject(983, 1604.9, -1638.1, 16.6, 0, 0, 270);
CreateObject(983, 1545.7, -1637.1, 28.1, 0, 0, 270);
CreateObject(983, 1552.1, -1637.1, 28.1, 0, 0, 270);
CreateObject(983, 1558.5, -1637.1, 28.1, 0, 0, 270);
CreateObject(983, 1564.9, -1637.1, 28.1, 0, 0, 270);
CreateObject(983, 1571.3, -1637.1, 28.1, 0, 0, 270);
CreateObject(983, 1574.7, -1637.1, 28.1, 0, 0, 270);
CreateObject(983, 1545.7, -1650.8, 28, 0, 0, 270);
CreateObject(983, 1550.4, -1650.8, 28, 0, 0, 270);
CreateObject(983, 1550.3, -1700.4, 28.1, 0, 0, 270);
CreateObject(983, 1545.7, -1700.4, 28, 0, 0, 270);
CreateObject(983, 1545.7, -1714.6, 28.1, 0, 0, 270);
CreateObject(983, 1552.1, -1714.6, 28.1, 0, 0, 270);
CreateObject(983, 1558.5, -1714.6, 28.1, 0, 0, 270);
CreateObject(983, 1564.9, -1714.6, 28.1, 0, 0, 270);
CreateObject(983, 1571.3, -1714.6, 28.1, 0, 0, 270);
CreateObject(983, 1574.7, -1714.6, 28.1, 0, 0, 270);
CreateObject(3029, 1565.7, -1667.3, 27.4, 0, 0, 90.25);
CreateObject(983, 1577.9, -1640.3, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1646.7, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1653.1, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1659.5, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1665.9, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1672.3, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1678.7, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1685.1, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1691.5, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1697.9, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1704.3, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1710.7, 28.1, 0, 0, 0);
CreateObject(983, 1577.9, -1711.4, 28.1, 0, 0, 0);
CreateObject(983, 1542.6, -1711.4, 28.1, 0, 0, 0);
CreateObject(983, 1542.6, -1705, 28.1, 0, 0, 0);
CreateObject(983, 1542.6, -1703.6, 28.1, 0, 0, 0);
CreateObject(983, 1553.5, -1697.2, 28.1, 0, 0, 0);
CreateObject(983, 1553.5, -1690.8, 28.1, 0, 0, 0);
CreateObject(983, 1553.5, -1684.4, 28.1, 0, 0, 0);
CreateObject(983, 1553.5, -1681.6, 28.1, 0, 0, 0);
CreateObject(3666, 1554.2, -1678.4, 27.9, 0, 0, 0);
CreateObject(3666, 1553.9, -1678.4, 27.9, 0, 0, 0);
CreateObject(3666, 1553.6, -1678.4, 27.9, 0, 0, 0);
CreateObject(983, 1553.5, -1669.6, 28.1, 0, 0, 0);
CreateObject(3666, 1554.5, -1678.4, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1678.1, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1677.8, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1677.5, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1677.2, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1676.9, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1676.6, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1676.3, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1676, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1675.7, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1675.4, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1675.1, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1674.8, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1674.5, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1674.2, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1673.9, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1673.6, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1673.3, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1673, 27.9, 0, 0, 0);
CreateObject(3666, 1554.5, -1672.7, 27.9, 0, 0, 0);
CreateObject(3666, 1554.2, -1672.7, 27.9, 0, 0, 0);
CreateObject(3666, 1553.9, -1672.7, 27.9, 0, 0, 0);
CreateObject(3666, 1553.6, -1672.7, 27.9, 0, 0, 0);
CreateObject(3666, 1553.5, -1692.4, 27.9, 0, 0, 0);
CreateObject(3666, 1545.7, -1700.4, 27.9, 0, 0, 0);
CreateObject(3666, 1542.7, -1711.3, 27.9, 0, 0, 0);
CreateObject(3666, 1560.1, -1714.5, 27.9, 0, 0, 0);
CreateObject(3666, 1577.8, -1704.4, 27.9, 0, 0, 0);
CreateObject(3666, 1577.9, -1680.4, 27.9, 0, 0, 0);
CreateObject(3666, 1577.9, -1664.3, 27.9, 0, 0, 0);
CreateObject(3666, 1577.9, -1649.9, 27.9, 0, 0, 0);
CreateObject(3666, 1577.8, -1637.3, 27.9, 0, 0, 0);
CreateObject(3666, 1561.7, -1637.2, 27.9, 0, 0, 0);
CreateObject(3666, 1542.6, -1637.3, 27.9, 0, 0, 0);
CreateObject(983, 1553.5, -1663.2, 28.1, 0, 0, 0);
CreateObject(983, 1553.5, -1658.1, 28.1, 0, 0, 0);
CreateObject(983, 1553.5, -1654, 28.1, 0, 0, 0);
CreateObject(983, 1542.5, -1640.3, 28.1, 0, 0, 0);
CreateObject(983, 1542.5, -1646.7, 28.1, 0, 0, 0);
CreateObject(983, 1542.5, -1647.6, 28.1, 0, 0, 0);
CreateObject(3666, 1542.5, -1650.7, 27.9, 0, 0, 0);
CreateObject(3666, 1553.5, -1658.2, 27.9, 0, 0, 0);
CreateObject(3666, 1553.5, -1667.4, 27.9, 0, 0, 0);
CreateObject(3666, 1545.6, -1672.8, 13.1, 0, 0, 0);
CreateObject(3666, 1545.6, -1678.6, 13.1, 0, 0, 0);
CreateObject(3934, 1564, -1703.3, 27.4, 0, 0, 0);
CreateObject(3666, 1568, -1707, 27.9, 0, 0, 0);
CreateObject(3666, 1559.9, -1707, 27.9, 0, 0, 0);
CreateObject(3666, 1559.9, -1699.8, 27.9, 0, 0, 0);
CreateObject(3666, 1568.1, -1699.7, 27.9, 0, 0, 0);
CreateObject(3934, 1554.5, -1643.5, 27.4, 0, 0, 0);
CreateObject(3666, 1558.6, -1639.9, 27.9, 0, 0, 0);
CreateObject(3666, 1558.7, -1647.3, 27.9, 0, 0, 0);
CreateObject(3666, 1550.6, -1647.3, 27.9, 0, 0, 0);
CreateObject(3666, 1550.3, -1639.9, 27.9, 0, 0, 0);
CreateObject(3934, 1571.4, -1655.3, 27.4, 0, 0, 270.5);
CreateObject(3666, 1574.9, -1651.2, 27.9, 0, 0, 0);
CreateObject(3666, 1567.6, -1651.1, 27.9, 0, 0, 0);
CreateObject(3666, 1567.7, -1659.1, 27.9, 0, 0, 0);
CreateObject(3666, 1575, -1659.1, 27.9, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, FEHER,\"Üdvözöllek a szerveren! Érezd jól magad!\");
SendClientMessage(playerid, FEHER,\"A szerveren sok mappolás várható és van!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
printf(\"Valaki elhagyta a szervert!\");
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/mycommand\", cmdtext, true, 10) == 0)
{
// Do something here
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;
}
És a fejes lábas:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
if(bodypart == BODY_PART_LEFT_LEG)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
SendClientMessage(playerid, COLOR_LIGHTRED, \"Bal Lábon lõtted, ezért nem tud mozogni!\");
TogglePlayerControllable(damagedid, false);
SetPlayerDrunkLevel(damagedid, 50000);
ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
SetPlayerArmedWeapon(damagedid, 0);
SendClientMessage(damagedid, COLOR_LIGHTRED, \"Bal Lábon lõttek, ezért nem bírsz mozogni!\");
}
}
else if(bodypart == BODY_PART_RIGHT_LEG)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
SendClientMessage(playerid, COLOR_LIGHTRED, \"Jobb lábon lõtted, ezért nem tud mozogni!\");
TogglePlayerControllable(damagedid, false);
SetPlayerDrunkLevel(damagedid, 50000);
ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
SetPlayerArmedWeapon(damagedid, 0);
SendClientMessage(damagedid, COLOR_LIGHTRED, \"Jobb Lábon lõttek, ezért nem bírsz mozogni!\");
}
}
else if(bodypart == BODY_PART_HEAD)
{
if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
{
SendClientMessage(playerid, COLOR_LIGHTRED, \"Fejenlõtted, ezért súlyosan megsérült és kórházba került!\");
SendClientMessage(damagedid, COLOR_LIGHTRED, \"Fejenlõttek, ezért súlyosan megsérültél!\");
SetPlayerHealth(damagedid,0);
}
}
return 1;
}
Segítés magadon:
if (strcmp(\"/segit\", cmdtext, true, 10) == 0)
{
TogglePlayerControllable(playerid, true);
SetPlayerDrunkLevel(playerid, 0);
ClearAnimations(playerid);
SendClientMessage(playerid, 0x33CCFFAA, \"Segítettél magadon!\");
return 1;
}