Üdvözlök Mindenkit Ebben a Témában!
Módot Készítette:zzoli11
Ami Található benne
-Rcon Adminrendszer
-Teleport
-Cigi
-God Mód
-afk
-v-s rendszer
-Skin
-PM
-mycolor
-idõ
-Jármû javítás
Code:
#include <a_samp>
#include <zcmd>
#include <sscanf>
//Szin Definálás:
#define COLOR_GREEN 0x33AA33AA
#pragma tabsize 0
//VÁltozók:
new bool:god[MAX_PLAYERS];
new bool:afk[MAX_PLAYERS];
//ez a régi Drift Drug mód volt!
main()
{
print(\"\\n---------------------------------------\");
print(\" Szerver Készitõje: CooLeeR A.k.A Zzoli11\");
print(\"---------------------------------------\\n\");
}
public OnGameModeInit()
{
SetGameModeText(\"CooLeeR Drift\");
print(\"Kocsik Sikeresen Betöltve!\");
AddStaticVehicleEx(429,1244.5918,-2044.0123,59.4385,269.5728,3,8,30);
AddStaticVehicleEx(429,1244.4556,-2039.0112,59.4530,269.5737,3,8,30);
AddStaticVehicleEx(429,1244.3218,-2034.0103,59.4569,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.1880,-2029.0093,59.4598,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.0435,-2024.0083,59.5090,269.5708,3,8,30);
AddStaticVehicleEx(429,1244.4020,-2019.0110,59.4543,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.2681,-2014.0100,59.4581,269.5736,3,8,30);
AddStaticVehicleEx(429,1244.1344,-2009.0090,59.4586,269.5736,3,8,30);
AddStaticVehicleEx(562,1277.2325,-2008.8496,58.6537,90.9820,80,1,30);
AddStaticVehicleEx(562,1277.2898,-2013.8459,58.6799,90.9880,80,1,30);
AddStaticVehicleEx(562,1277.3527,-2018.8459,58.6532,90.9999,80,1,30);
AddStaticVehicleEx(562,1277.1606,-2023.8486,58.6727,91.0445,80,1,30);
AddStaticVehicleEx(562,1277.2394,-2028.8505,58.6903,91.0443,80,1,30);
AddStaticVehicleEx(562,1277.3176,-2033.8517,58.7078,91.0446,80,1,30);
AddStaticVehicleEx(562,1277.5691,-2038.5188,58.7298,89.9342,80,1,30);
AddStaticVehicleEx(562,1277.5576,-2043.5189,58.7753,89.9388,80,1,30);
AddStaticVehicleEx(411,-314.8287,1514.7446,75.0528,1.3532,64,1,30);
AddStaticVehicleEx(411,-317.7801,1515.4036,75.0402,0.2407,64,1,30);
AddStaticVehicleEx(562,-321.1545,1515.1018,75.0316,1.0602,36,1,30);
AddStaticVehicleEx(562,-324.1783,1515.1737,75.0190,359.2409,36,1,30);
AddStaticVehicleEx(603,-327.2997,1514.8605,75.2209,0.4270,32,1,30);
AddStaticVehicleEx(603,-330.2702,1515.1918,75.1976,0.0379,32,1,30);
AddStaticVehicleEx(451,-333.5902,1515.0868,75.0659,358.1462,36,36,30);
AddStaticVehicleEx(451,-336.5558,1515.6045,75.0652,359.4702,36,36,30);
AddStaticVehicleEx(602,-339.7686,1515.3315,75.0475,359.4720,69,1,30);
AddStaticVehicleEx(602,-342.9582,1515.2747,75.0470,0.7727,69,1,30);
AddStaticVehicleEx(602,-1040.8020,-1350.3877,130.0764,104.3700,69,1,30);
AddStaticVehicleEx(429,-1045.5331,-1348.4998,129.9614,97.8369,13,13,30);
AddStaticVehicleEx(562,-1048.5942,-1345.7634,129.9555,98.7577,17,1,30);
AddStaticVehicleEx(411,1091.6051,2298.4656,10.5255,269.1693,123,1,30);
AddStaticVehicleEx(411,1091.4738,2288.5093,10.5334,269.1803,123,1,30);
AddStaticVehicleEx(451,1084.8191,2288.6338,10.4702,268.4966,61,61,30);
AddStaticVehicleEx(451,1085.0681,2298.5449,10.4603,268.4279,61,61,30);
AddStaticVehicleEx(451,-784.5894,2752.4451,45.3542,272.8446,61,61,30);
print(\"Skinek Sikeresen Betöltve!\");
//Skinek:
AddPlayerClass(0,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(1,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(13,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(16,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(18,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(19,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(21,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(22,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(23,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(26,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(27,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(28,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(29,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(30,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(33,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(36,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(46,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(299,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(296,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(285,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(286,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(287,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(288,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(102,1222.7469,-2037.1483,65.2266,279.0452,0,0,0,0,0,0);
AddPlayerClass(103,1222.9333,-2036.9647,65.1844,270.4167,0,0,0,0,0,0);
AddPlayerClass(104,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(105,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(106,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(107,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(128,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
print(\"Objectek Betöltve!\");
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1095.3811,-2036.9301,82.7055);
SetPlayerFacingAngle(playerid,271.5483);
SetPlayerCameraPos(playerid, 1106.181518, -2036.951049, 82.758186);
SetPlayerCameraLookAt(playerid, 1101.183349, -2037.086181, 82.758186);
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX,\"Szabályzat\",\"Ne DM-elj!\\nNe Ölj meg senkit Kocsiból!\\nOOC Ne Szidj!\\nNe Floodolj\\nNe Használj külsõ Programot!\\nTiszteld a Játékosokat és az adminokat\",\"Rendben\",\"\");
SendClientMessage(playerid,COLOR_GREEN,\"Üdvözöllek CooLeeR Drift Szerverén!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
AntiDeAMX();
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
CMD:help(playerid)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,\"parancsok\",\"/tele a teleportért!\\n/cars a Kocsikért!\",\"Rendben\",\"\");
return 1;
}
CMD:tele(playerid)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,\"Teleportok\",\"/drift 1-10Között!\\nDialogos Teleport:/teles\",\"Rendben\",\"\");
return 1;
}
CMD:drift1(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-1re!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),-325.1331,1533.0276,75.3594);
}
return 1;
}
CMD:drift2(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,2315.8945,1401.4497,42.8203);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-2re!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),2315.8945,1401.4497,42.8203);
}
return 1;
}
CMD:drift3(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,1259.4164,-2027.4384,59.4366);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-3ra!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),1259.4164,-2027.4384,59.4366);
}
return 1;
}
CMD:drift4(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,-1058.1448,-1353.2602,129.9056);
SetPlayerFacingAngle(playerid,71.4104);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál a Drift-4re!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),-1058.1448,-1353.2602,129.9056);
}
return 1;
}
CMD:drift5(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,2224.5698,1963.1658,31.7796);
SetPlayerFacingAngle(playerid,270.6689);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-5re!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),2224.5698,1963.1658,31.7796);
}
return 1;
}
CMD:drift6(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,1094.2669,2292.7783,10.7970);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-6ra!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),1094.2669,2292.7783,10.7970);
}
return 1;
}
CMD:drift7(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,-778.7633,2731.8259,45.3426);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-7re!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),-778.7633,2731.8259,45.3426);
}
return 1;
}
CMD:drift8(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,-2134.7158,918.3775,79.8515);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Dirft-8ra!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),-2134.7158,918.3775,79.8515);
}
return 1;
}
CMD:drift9(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,-2666.2487,576.9454,14.4612);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-9-re!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),-2666.2487,576.9454,14.4612);
}
return 1;
}
CMD:drift10(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,-2412.5739,-601.2869,132.5625);
SetPlayerInterior(playerid,0);
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),-2412.5739,-601.2869,132.5625);
}
return 1;
}
CMD:teles(playerid)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,\"Teleportok!\",\"Drift 1\\nDrift 2\\nDrift 3\\nDrift 4\\nDrift 5\\nDrift 6\\nDrift 7\\nDrift 8\\nDrift 9\\nDrift 10\",\"Kiválaszt\",\"Mégse\");
return 1;
}
CMD:god(playerid)
{
if(god[playerid] == false)
{
god[playerid] = true;
SendClientMessage(playerid,COLOR_GREEN,\"GodMód Bekapcsolva!\");
SetPlayerHealth(playerid,99999);
return 1;
}
else if(god[playerid] == true)
{
god[playerid] = false;
SendClientMessage(playerid,COLOR_GREEN,\"GodMód Kikapcsolva!\");
SetPlayerHealth(playerid,100.0);
return 1;
}
return 1;
}
CMD:cigi(playerid)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
return 1;
}
CMD:afk(playerid)
{
new nev[MAX_PLAYER_NAME],string[128];
if(afk[playerid]==false)
{
afk[playerid]=true;
SendClientMessage(playerid,COLOR_GREEN,\"AFK-ba Léptél!\");
TogglePlayerControllable(playerid,true);
SetPlayerHealth(playerid,999999);
SetPlayerArmour(playerid,999999);
format(string, sizeof(string),\"Rendszer:%s[iD:%s] Afk-ba Lépett!Megõlni Tilos!\",nev,playerid);
SendClientMessageToAll(COLOR_GREEN,string);
return 1;
}
else if(afk[playerid]==true)
{
afk[playerid]=false;
TogglePlayerControllable(playerid,false);
SendClientMessage(playerid,COLOR_GREEN,\"Kiléptél AFK-ból!\");
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
format(string, sizeof(string),\"Rendszer:%s[iD:%s] Kilépett AFK-ból!\",nev,playerid);
SendClientMessageToAll(COLOR_GREEN,string);
return 1;
}
return 1;
}
CMD:v(playerid,params[])
{
new carid;
if(sscanf(params,\"i\",carid))return SendClientMessage(playerid,COLOR_GREEN,\"Használat:/v <<<Kocsi ID!>>>\");
if(carid<400)return SendClientMessage(playerid,COLOR_GREEN,\"Minimum ID:400!\");
if(carid>611)return SendClientMessage(playerid,COLOR_GREEN,\"Maximum ID:611!\");
new Float:X1,Float:Y2,Float:Z3;
GetPlayerPos(playerid,X1,Y2,Z3);
CreateVehicle(carid,X1,Y2,Z3,0,0,0,0);
return 1;
}
CMD:skin(playerid,params[])
{
new skinID;
if(sscanf(params,\"i\",skinID))return SendClientMessage(playerid,COLOR_GREEN,\"Használata:/skin <SkinID>\");
SetPlayerSkin(playerid,skinID);
return 1;
}
CMD:pm(playerid,params[])
{
new kinek;
new uzenet;
new string[128];
if(sscanf(params,\"ui\",kinek,uzenet))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /pm <ID><Üzenet>\");
format(string, sizeof(string),\"Üzenetet Küldte:%s ,Üzenete:%s\",playerid,uzenet);
SendClientMessage(kinek,COLOR_GREEN,string);
return 1;
}
CMD:mycolor(playerid,params[])
{
new colorid;
if(sscanf(params,\"i\",colorid))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /mycolor [színID]\");
SetPlayerColor(playerid,colorid);
return 1;
}
CMD:ido(playerid,params[])
{
new ido;
if(sscanf(params,\"i\",ido))SendClientMessage(playerid,COLOR_GREEN,\"Használat: /ido >Idõérték<\");
SetPlayerWeather(playerid,ido);
return 1;
}
CMD:javit(playerid)
{
new vehicleid=GetPlayerVehicleID(vehicleid);
RepairVehicle(vehicleid);
return 1;
}
//adminrendszer újrairva
CMD:goto(playerid,params[])
{
new id;
new Float:x,Float:y,Float:z;
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem Vagy Adminisztrátor!\");
if(sscanf(params,\"u\",id))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /goto <ID>\");
GetPlayerPos(id,x,y,z);
SetPlayerPos(playerid,x,y,z);
return 1;
}
CMD:get(playerid,params[])
{
new id;
new Float:x,Float:y,Float:z;
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem Vagy Adminisztrátor!\");
if(sscanf(params,\"u\",id))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /get <ID>\");
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(id,x,y,z);
return 1;
}
CMD:fagyaszt(playerid,params[])
{
new kit;
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem Vagy Adminisztrátor!\");
if(sscanf(params,\"u\",kit))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /fagyaszt <ID>\");
TogglePlayerControllable(kit,true);
return 1;
}
CMD:olvaszt(playerid,params[])
{
new kit;
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem Vagy Adminisztrátor!\");
if(sscanf(params,\"u\",kit))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /olvaszt <ID>\");
TogglePlayerControllable(kit,false);
return 1;
}
CMD:interior(playerid,params[])
{
new id;
new InteriorID;
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem Vagy Adminisztrátor!\");
if(sscanf(params,\"ui\",id,InteriorID))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /Interior <PlayerID> <InteriorID>\");
SetPlayerInterior(id,InteriorID);
return 1;
}
CMD:virtualvw(playerid,params[])
{
new id;
new vwid;
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem Vagy Adminisztrátor!\");
if(sscanf(params,\"ui\",id,vwid))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /virtualvw <playerID><VirtualID>\");
SetPlayerVirtualWorld(id,vwid);
return 1;
}
CMD:kick(playerid,params[])
{
new indok,id,string[128];
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem Vagy Adminisztrátor!\");
if(sscanf(params,\"ui\",id,indok))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /kick Playerid Indok\");
format(string, sizeof(string),\"Admin:%s Kickelte %s -t ,Indok:%s\",playerid,id,indok);
SendClientMessageToAll(COLOR_GREEN,string);
Kick(id);
return 1;
}
CMD:ban(playerid,params[])
{
new indok,id,string[128];
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem Vagy Adminisztrátor!\");
if(sscanf(params,\"ui\",id,indok))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /kick Playerid Indok\");
format(string, sizeof(string),\"Admin:%s bannolta %s -t ,Indok:%s\",playerid,id,indok);
SendClientMessageToAll(COLOR_GREEN,string);
Kick(id);
return 1;
}
CMD:fegyver(playerid,params[])
{
new kinek,fegyverid,loszer;
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_GREEN,\"Nem vagy Adminisztrátor!\");
if(sscanf(params,\"uii\",kinek,fegyverid,loszer))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /fegyverr >Playerid<>FegyverID<>lõszer<\");
GivePlayerWeapon(kinek,fegyverid,loszer);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 3)
{
if(response)
{
if(listitem==0)
{
SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
return 1;
}
if(listitem==1)
{
SetPlayerPos(playerid,2315.8945,1401.4497,42.8203);
return 1;
}
if(listitem==2)
{
SetPlayerPos(playerid,1259.4164,-2027.4384,59.4366);
return 1;
}
if(listitem==3)
{
SetPlayerPos(playerid,-1058.1448,-1353.2602,129.9056);
return 1;
}
if(listitem==4)
{
SetPlayerPos(playerid,2224.5698,1963.1658,31.7796);
return 1;
}
if(listitem==5)
{
SetPlayerPos(playerid,1094.2669,2292.7783,10.7970);
return 1;
}
if(listitem==6)
{
SetPlayerPos(playerid,-778.7633,2731.8259,45.3426);
return 1;
}
if(listitem==7)
{
SetPlayerPos(playerid,-2134.7158,918.3775,79.8515);
return 1;
}
if(listitem==8)
{
SetPlayerPos(playerid,-2666.2487,576.9454,14.4612);
return 1;
}
if(listitem==9)
{
SetPlayerPos(playerid,-2412.5739,-601.2869,132.5625);
}
}
}
return 1;
}
AntiDeAMX()
{
new a[][] =
{
\"Unarmed (Fist)\",
\"Brass K\"
};
#pragma unused a
}