Halli gyakorlás képen elkészítettem egy modott kezdõknek
Mindt mondtam kezdõknek nem nagy mod
A Modot írta N[o.O]naMe (én)
Elkészítési idõ 5-10 perc nem számoltam õszintén
A mod szabadon terjeszthetõ/felhasználható Nem igazán törõdõk vele.
Amint lesz idõm rakok bele teléket mapokat több parancsot fegyver lekérõt STB.... addig is sok sikert a modhoz
Ha hiba van benne szóljatok PLS.
//Alap Mod kezdõknek.....
#include <a_samp>
new Text:Textdraw1;
#define SZIN_PIROS 0xff0000AA
#define SZIN_KEK 0x002bffAA
#define SZIN_CITROMSARGA 0xf7ff00AA
#define SZIN_CIAN 0x0affffAA
#define SZIN_NEONZOLD 0x0afa1eAA
#define SZIN_ZOLD 0x0c8a17AA
#define SZIN_BARNA 0x945613AA
#define SZIN_LILA 0xa61996AA
#define SZIN_ROZSASZIN 0xf503d9AA
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" <<===Gamemode===>>\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n----------------------------------\");
print(\" <<===Alap Gamemode===>>\");
print(\"----------------------------------\\n\");
}
#endif
public OnGameModeInit()
{
Textdraw1 = TextDrawCreate(7.000000, 427.000000, \"/cmds /rules\");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.509999, 1.800000);
TextDrawColor(Textdraw1, 9454143);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw1);
}
}
SetGameModeText(\"[HuN]Stunt/Parkour/FreeRoam\");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 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, 0xf7ff00AA, \" <<<<Üdv a Szerveren>>>>!\");
SendClientMessage(playerid, 0xff0000AA, \"Olvasd el a szabályzatott |/rules|\");
SendClientMessage(playerid, 0xf7ff00AA, \"Kellemes Idõtöltése a szerveren\");
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,\"%s csatlakozott a szerverhez\",pName);
SendClientMessageToAll(0x002bffAA,string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 1: format(string,sizeof string,\"%s lelépett a szerverõl! [Kilépés]\",name);
}
SendClientMessageToAll(0xff0000AA,string);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,2182.3892,1988.3986,10.8203);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
SetPlayerPos(playerid,2182.3892,1988.3986,10.8203);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//Szabályzat------------------------------------
if (strcmp(cmdtext, \"/rules\", true)==0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Szabályzat:\", \"Ne heckelj vagy cheatelj ne használj semmilyen olyan programot ammitõl nagyobb képeséged lesz mint egy átlag playernek\\nTilos a Drive-by (elütni valakit és ezzel HP-vesztést okozni neki)\\nNe szid a szervert/adminokat! és ne szolj belle az adminok döntésébe\\nNe floodloj(rövid idõn belül sokat írsz a chat-be)!\\nNe lövöltöz/ölj épületben\\nKérlek fogadd el és tarcsd be a szabályzatot! és ne keress kibuvót alolúk!\", \"Redben\", \"Vissza\");
return 1;
}
//CMDS-----------------------------------------
if (strcmp(cmdtext, \"/cmds\", true)==0)
{
ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, \"Parancsok:\", \"/flip /health /parachute /kill\", \"Igen\", \"Mégse\");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
return 1;
}
//Alap Parancsok--------------------------------------
if(strcmp(cmdtext, \"/parachute\", true) == 0)
{
GivePlayerWeapon(playerid, 46, 1);
SendClientMessage(playerid, 0xe6e600AA, \"Ejtõernyö lekérve\");
return 1;
}
if (strcmp(cmdtext, \"/flip\", true)==0)
{
new VehicleID, Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, X, Y, Z);
SetVehicleZAngle(VehicleID, 0);
SendClientMessage(playerid, 0xe6e600AA, \"Jármû felálítva\");
return 1;
}
if (strcmp(cmdtext, \"/health\", true)==0)
{
SetPlayerHealth(playerid,100);
SendClientMessage(playerid, 0xe6e600AA, \"Életed feltõltve!\");
return 1;
}
if(strcmp(\"/kill\", cmdtext, true, 10) == 0) {
SetPlayerHealth(playerid, 000.0);
return 1;
}
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;
}