Csatlakozás
Spawn
Fegyverek
Kaják
Parancsok
És a lényeg... /*
A Mód 90%-ban az enyém, mert..
A Cenzúrázó cuccot azt nem én csináltam!
+ Kellett egy kis segítség!
*/
#include a_samp
#include fixchars
#include zcmd
#pragma tabsize 0
Cenzura(const b[],c[],rep = \'*\') for(new d=0; d<256; d++) if (strfind(c[d], b, true) == 0) for(new a=0; a<256; a++) if (a >= d && a < d+strlen(b)) c[a]=rep; // ez nem az enyém! Ezt Epsilon csinálta! \"http://sampforum.hu/index.php?topic=3308.0\"
public OnGameModeInit()
{
UsePlayerPedAnims();
AddPlayerClass(1,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(2,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(3,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(4,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(5,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(6,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(7,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(8,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(9,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(10,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(11,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(12,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(13,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(14,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(15,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(16,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(17,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(18,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(19,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(20,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(21,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(22,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(23,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(24,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddPlayerClass(25,-2233.4751,-1734.6493,480.8472,220.7934,0,0,0,0,0,0);
AddStaticPickup(346, 15, 2493.2417,-1687.2196, 13.5138);
AddStaticPickup(370, 15, 2489.3792,-1686.9971, 13.5146);
AddStaticPickup(344, 15, 2484.7742,-1686.6833, 13.5080);
AddStaticVehicle(411,2473.1252, -1692.7493, 13.2417,0.7485,64,1);
AddStaticVehicle(451,2498.8508,-1683.4614,13.0942,282.9595,125,125);
AddStaticVehicle(522,2494.4165,-1647.3062,13.1118,36.0145,6,25);
AddStaticVehicle(510,2513.1921,-1685.7766,13.1385,82.7163,46,46);
AddStaticVehicle(562,2437.7935,-1677.2106,13.3740,359.4260,35,1);
AddStaticVehicle(562,2433.1521,-1677.0685,13.3762,0.1049,17,1);
AddStaticVehicle(562,2428.7163,-1676.8701,13.3691,0.8109,11,1);
AddStaticVehicle(522,2424.3533,-1676.6710,13.2740,3.0713,7,79);
AddStaticVehicle(407,-2021.5176,74.6266,28.3643,271.8415,83,115);
AddStaticVehicle(407,-2021.6913,83.5158,28.2439,267.9506,46,53);
AddStaticVehicle(407,-2021.7384,92.6203,28.2799,272.2403,97,84);
AddStaticVehicle(597,-1634.8638,651.1411,6.9567,358.2930,50,30);
AddStaticVehicle(597,-1622.6279,651.4379,6.9569,359.7473,91,61);
AddStaticVehicle(597,-1605.3195,651.1875,6.9565,356.3983,122,107);
AddStaticVehicle(523,-1612.8700,673.2302,6.7590,181.6008,108,62);
AddStaticVehicle(599,-1600.0300,673.3554,7.3789,176.9118,45,0);
AddStaticVehicle(407,-2021.5176,74.6266,28.3643,271.8415,83,115);
AddStaticVehicle(407,-2021.6913,83.5158,28.2439,267.9506,46,53);
AddStaticVehicle(407,-2021.7384,92.6203,28.2799,272.2403,97,84);
AddStaticVehicle(597,-1634.8638,651.1411,6.9567,358.2930,50,30);
AddStaticVehicle(597,-1622.6279,651.4379,6.9569,359.7473,91,61);
AddStaticVehicle(597,-1605.3195,651.1875,6.9565,356.3983,122,107);
AddStaticVehicle(523,-1612.8700,673.2302,6.7590,181.6008,108,62);
AddStaticVehicle(599,-1600.0300,673.3554,7.3789,176.9118,45,0);
AddStaticVehicle(579,-1655.6976,1314.6937,6.9725,134.6483,0,0);
AddStaticVehicle(477,-1652.0837,1311.3364,6.7880,134.5147,0,0);
AddStaticVehicle(555,-1648.1652,1308.0527,6.7132,135.0099,0,0);
AddStaticVehicle(404,-1645.1879,1303.7866,6.7606,136.1379,0,0);
AddStaticVehicle(522,-1642.6099,1299.8983,6.5939,133.6816,34,91);
AddStaticVehicle(402,-1637.8093,1297.3398,6.8683,133.5869,66,66);
AddStaticVehicle(531,-1634.3992,1293.4717,7.0063,133.8046,75,31);
AddStaticVehicle(506,-1631.0022,1289.9691,6.7435,133.0865,1,58);
AddStaticVehicle(411,2075.0330,1179.8167,10.4069,223.9384,82,13);
AddStaticVehicle(411,2075.1660,1175.3718,10.4041,245.4526,122,0);
AddStaticVehicle(411,2075.2522,1171.6421,10.4028,235.0533,60,17);
AddStaticVehicle(510,1982.7104,-1162.2281,20.4184,239.5562,47,106);
AddStaticVehicle(483,-2328.6909,-1656.9364,483.6954,236.9247,82,3);
SetGameModeText(\"Írd át!\");
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)
{
ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0);
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238);
ApplyAnimation(playerid,\"DANCING\",\"dnce_M_a\",4.1,1,1,1,1,1,1);
return 1;
}
public OnPlayerConnect(playerid)
{
SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {0000FF}jött {FFFF00}kockulni a {0000FF}szerverre!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
SendClientMessage(playerid,0xFF9933AA,\"Üdvözöllek {FF0606}a {33AA33}szerveren!\");
SendClientMessage(playerid,0xFF9933AA,\"Mielõtt bármit kérdeznél {33AA33}/cmds, /help, /rules!\");
SendClientMessage(playerid,0xFF0606FF,\"Jó Játékot!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {33AA33}megunta a játékot.\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid, 10000);
SetPlayerVirtualWorld(playerid, 0);
PlayerPlaySound(playerid, 1098,-119.9460,23.1096,12.2238);
SetPlayerInterior(playerid, 0);
PlayerPlaySound(playerid,1085,0,0,0);
GivePlayerWeapon(playerid,31,1000);
GivePlayerWeapon(playerid,4,9999);
GivePlayerWeapon(playerid,26,1000);
SetPlayerPos(playerid,2493.8020,-1672.7885,13.3359);
SendClientMessage(playerid,0xFF9933AA,\"Mehet a játék!\");
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage( killerid, playerid, reason );
SetPlayerArmour(playerid, 0);
SetPlayerWantedLevel(playerid,0);
GivePlayerMoney(killerid, 10000);
ResetPlayerMoney(playerid);
ResetPlayerWeapons(playerid);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}meghalt! {33aa33}Sirassuk meg!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
GameTextForPlayer(playerid,\"~r~~h~Béna vagy!\", 5000, 3);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
Cenzura(\"k*rv*\",text);
Cenzura(\"buzi\",text);
Cenzura(\"strici\",text);
Cenzura(\"bazmeg\",text);
Cenzura(\"***dmeg\",text);
Cenzura(\"geci\",text);
Cenzura(\"köcsög\",text);
Cenzura(\"k*rv*\",text);
Cenzura(\"Buzi\",text);
Cenzura(\"Strici\",text);
Cenzura(\"Bazmeg\",text);
Cenzura(\"***dmeg\",text);
Cenzura(\"Geci\",text);
Cenzura(\"Köcsög\",text); //ez nem az enyém! Ezt innen néztem! http://sampforum.hu/index.php?topic=3308.0!
return 1;
}
CMD:cmds(playerid, params[])
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}Parancsok:\",\"{0000FF}/weapons - {33AA33}Fegyverek\\n{0000FF}/colors - {33AA33}Színek\\n{0000FF}/teles - {33AA33}Teleportok\\n{0000FF}/kill - {33AA33}Meghalsz\\n{0000FF}/cast - {33AA33}Elérhetõ kasztok\\n\",\"Oké\",\"Oké\");
return 1;
}
CMD:weapons(playerid, params[])
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}Fegyverek:\",\"{0000FF}/m4 - {33AA33}1000$\\n{0000FF}/ak47 - {33AA33}1000$\\n{0000FF}/deagle - {33AA33}300$\\n{0000FF}/chinsaw - {33AA33}1500$\\n{0000FF}/shotgun - {33AA33}500$\\n{0000FF}/tec9 - {33AA33}400$\\n{0000FF}/flameth - {33AA33}3000$\\n{0000FF}/sniper - {33AA33}700$\\n{0000FF}/minigun - {33AA33}1000000$\\n{0000FF}/rpg - {33AA33}200000$ \",\"Oké\",\"Oké\");
return 1;
}
CMD:teles(playerid, params[])
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}Teleportok:\",\"{0000FF}/sf - {33AA33}San Fierro\\n{0000FF}/lv - {33AA33}Las Venturas\\n{0000FF}/ls - {33AA33}Los Santos\\n{0000FF}/lsa - {33AA33}Los Santos Air\\n{0000FF}/sfa - {33AA33}San Fierro Air\\n{0000FF}/lva - {33AA33}Las Venturas Air\\n{0000FF}/area51 - {33AA33}Area51\\n{0000FF}/chilliad - {0000FF}Chilliad\",\"Oké\",\"Oké\");
return 1;
}
CMD:cast(playerid, params[])
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}Kasztok:\",\"{0000FF}/police - {33AA33}Rendõr\\n{0000FF}/fireman - {33AA33}Tûzoltó\\n{0000FF}/soldier - {33AA33}Katona\\n{0000FF}/gipsy - {33AA33}Cigány xd\\n{0000FF}/maffia - {33AA33}Maffiózó leszel\",\"Oké\",\"Oké\");
return 1;
}
CMD:food(playerid, params[])
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}Kaják:\",\"{0000FF}/chips - {33AA33}10% élet\\n{0000FF}/hamburger - {33AA33}15% élet\\n{0000FF}/hotdog - {33AA33}15% élet\\n{0000FF}/zsiroskenyer - {33AA33}20% élet\\n{0000FF}/sportszelet - {33AA33}5% élet\\n/{0000FF}sandwich - {33AA33}35% élet\\n/{0000FF}gofri - {33AA33}25% élet\\n/{0000FF}gyros - {33AA33}30% élet\",\"Oké\",\"Oké\");
return 1;
}
CMD:colors(playerid, params[])
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}Színek:\",\"{00FFFF}/blue\\n/{FF9933}orange\\n{FFFFFF}/white\\n{000000}/black\\n{FF0606}/red\\n{33AA33}/green\",\"Oké\",\"Oké\");
return 1;
}
CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
CMD:help(playerid, params[])
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}Segítség:\",\"{33AA33}Ha bármi gond van szólj az {FF0606}Adminoknak!\\n - {33AA33}/cmds - {FF0606}Parancs lista\\n - {33AA33}/tgf - {FF0606}TAGFELVÉTEL\\n - {FF0606}/rules - Szabályzat!\\n{FF9933}A Szerveren nem csak adminok tudnak gotozni, hanem {33AA33} a játékosok {FF9933}is!\\n{FF0606}Nyomd meg a Tab-ot, és katt a {FFFF00}játékos nevére!\\n{33AA33}GameMode-ot {FF9933}Vajzs {33AA33}készítette!\",\"Oké\",\"Oké\");
return 1;
}
CMD:rules(playerid, params[])
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}Szabályok!:\",\"{00FFFF}- Ne Hackelj!\\n - Ne kérj admint; /tgf!\\n - Ne káromkodj!\\n {FF0606}Ha ezeket nem tartod be: Ban! Kick! Warn! Mute!\",\"Oké\",\"Oké\");
return 1;
}
CMD:tgf(playerid, params[])
{
SendClientMessage(playerid, 0x33AA33AA, \"AdminTGF: {FF0606}VAN!\");
return 1;
}
CMD:chips(playerid, params[])
{
if(GetPlayerMoney(playerid) < 10) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 10$-od !\"); }
GivePlayerMoney(playerid,-10);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 10;
SetPlayerHealth(playerid,hp);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy chipset.\");
PlayerPlaySound(playerid,1085,0,0,0);
ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}chipset!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:hamburger(playerid, params[])
{
if(GetPlayerMoney(playerid) < 50) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 50$-od !\"); }
GivePlayerMoney(playerid,-50);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 15;
SetPlayerHealth(playerid,hp);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy hamburgert.\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}hamburgert!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:hotdog(playerid, params[])
{
if(GetPlayerMoney(playerid) < 50) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 50$-od !\"); }
GivePlayerMoney(playerid,-50);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 15;
SetPlayerHealth(playerid,hp);
ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy hotdogot.\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}hotdogot!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:zsiroskenyer(playerid, params[])
{
if(GetPlayerMoney(playerid) < 100) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 100$-od !\"); }
GivePlayerMoney(playerid,-100);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 20;
SetPlayerHealth(playerid,hp);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy zsíroskenyeret!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}zsíroskenyeret!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:sportszelet(playerid, params[])
{
if(GetPlayerMoney(playerid) < 2) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 2$-od !\"); }
GivePlayerMoney(playerid,-2);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 5;
SetPlayerHealth(playerid,hp);
ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy Sportszeletet.\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}Sportszeletet!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:gyros(playerid, params[])
{
if(GetPlayerMoney(playerid) < 50) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 50$-od !\"); }
GivePlayerMoney(playerid,-50);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 30;
SetPlayerHealth(playerid,hp);
ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy Gyrost.\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}Gyrost!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:gofri(playerid, params[])
{
if(GetPlayerMoney(playerid) < 45) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 45$-od !\"); }
GivePlayerMoney(playerid,-45);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 25;
SetPlayerHealth(playerid,hp);
ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy Gofrit.\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}Gofrit!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:sandwich(playerid, params[])
{
if(GetPlayerMoney(playerid) < 50) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 50$-od !\"); }
GivePlayerMoney(playerid,-50);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 35;
SetPlayerHealth(playerid,hp);
ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy sandwichet.\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}Sandwichet!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:ak47(playerid, params[])
{
if(GetPlayerMoney(playerid) < 1000) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 1000$-od !\"); }
GivePlayerWeapon(playerid,30,1000);
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy AK47-et!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}AK47-et!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:m4(playerid, params[])
{
if(GetPlayerMoney(playerid) < 1000) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 1000$-od !\"); }
GivePlayerWeapon(playerid,31,1000);
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy M4-et!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}M4-et!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:chinsaw(playerid, params[])
{
if(GetPlayerMoney(playerid) < 1500) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 1500$-od !\"); }
GivePlayerWeapon(playerid,9,1000);
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy Láncfûrészt!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}láncfûrészt!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:deagle(playerid, params[])
{
if(GetPlayerMoney(playerid) < 300) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 300$-od !\"); }
GivePlayerWeapon(playerid,24,1000);
GivePlayerMoney(playerid,-300);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy Deaglet!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}Deagle-t!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:sniper(playerid, params[])
{
if(GetPlayerMoney(playerid) < 700) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 700$-od !\"); }
GivePlayerWeapon(playerid,34,1000);
GivePlayerMoney(playerid,-700);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy Snipert!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}Snipert!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:shotgun(playerid, params[])
{
if(GetPlayerMoney(playerid) < 500) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 500$-od !\"); }
GivePlayerWeapon(playerid,25,1000);
GivePlayerMoney(playerid,-500);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy Shotgunt!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}ShotGunt!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:flameth(playerid, params[])
{
if(GetPlayerMoney(playerid) < 3000) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 3000$-od !\"); }
GivePlayerWeapon(playerid,37,1000);
GivePlayerMoney(playerid,-3000);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy Lángszórót!!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}lángszórót, {ABCDEF}mert pisztollyal nem megy neki!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:tec9(playerid, params[])
{
if(GetPlayerMoney(playerid) < 500) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 500$-od !\"); }
GivePlayerWeapon(playerid,32,1000);
GivePlayerMoney(playerid,-500);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy Tec9-et!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}Tec9-et!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:minigun(playerid, params[])
{
if(GetPlayerMoney(playerid) < 1000000) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 1000000$-od !\"); }
GivePlayerWeapon(playerid,38,1000);
GivePlayerMoney(playerid,-1000000);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy Minigunt!\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}Minigunt!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:rpg(playerid, params[])
{
if(GetPlayerMoney(playerid) < 200000) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 200000$-od !\"); }
GivePlayerWeapon(playerid,35,1000);
GivePlayerMoney(playerid,-200000);
SendClientMessage(playerid, 0x00BFFFAA, \"Vettél egy RPG-t! Nem.. nem a RolePlayGaming -.-\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}szerzett magának egy {33AA33}RPG-t!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:sf(playerid, params[])
{
SetPlayerPos(playerid,-1691.5912,1353.2102,9.8047);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s elteleportált {FF9933}SanFierroba!\", pName);
SendClientMessageToAll(0x33AA33AA,string);
GameTextForPlayer(playerid,\"San Fierro!\", 5000, 3);
return 1;
}
CMD:ls(playerid, params[])
{
SetPlayerPos(playerid,1973.6042,-1157.5143,20.9531);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s elteleportált {FF9933}Los Santos-ba!\", pName);
SendClientMessageToAll(0x33AA33AA,string);
GameTextForPlayer(playerid,\"Los Santos\", 5000, 3);
return 1;
}
CMD:lv(playerid, params[])
{
SetPlayerPos(playerid,2094.4348,1161.4370,11.6484);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s elteleportált {FF9933}Las Venturas-ba!\", pName);
SendClientMessageToAll(0x33AA33AA,string);
GameTextForPlayer(playerid,\"Las Venturas\", 5000, 3);
return 1;
}
CMD:lva(playerid, params[])
{
SetPlayerPos(playerid,1435.5493,1435.1508,10.8203);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s elteleportált {FF9933}Las Venturas Airra!\", pName);
SendClientMessageToAll(0x33AA33AA,string);
GameTextForPlayer(playerid,\"Las Venturas Airport\", 5000, 3);
return 1;
}
CMD:sfa(playerid, params[])
{
SetPlayerPos(playerid,-1532.5897,-248.7376,14.1484);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s elteleportált {FF9933}San Fierro Airra!\", pName);
SendClientMessageToAll(0x33AA33AA,string);
GameTextForPlayer(playerid,\"San Fierro Airport\", 5000, 3);
return 1;
}
CMD:lsa(playerid, params[])
{
SetPlayerPos(playerid,1947.9374,-2459.2046,13.5391);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s elteleportált {FF9933}Los Santos Airra!\", pName);
SendClientMessageToAll(0x33AA33AA,string);
GameTextForPlayer(playerid,\"Los Santos Airport\", 5000, 3);
return 1;
}
CMD:chilliad(playerid, params[])
{
SetPlayerPos(playerid,-2235.9731,-1735.4957,480.7945);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s elteleportált {FF9933}Chilliad-ra! \", pName);
SendClientMessageToAll(0x33AA33AA,string);
return 1;
}
CMD:area51(playerid, params[])
{
SetPlayerPos(playerid,211.1893,1811.9176,21.8594);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s elteleportált az {FF9933}51-es körzetbe!\", pName);
SendClientMessageToAll(0x33AA33AA,string);
return 1;
}
CMD:rep(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0x33AA33AA, \"A jármûved megjavítva!\");
}
else SendClientMessage(playerid, 0xFF0606FF, \"Nem vagy kocsiban!\");
return 1;
}
CMD:police(playerid, params[])
{
SetPlayerSkin(playerid,266);
ResetPlayerWeapons(playerid);
ResetPlayerMoney(playerid);
GivePlayerWeapon(playerid,24,1000);
GivePlayerWeapon(playerid,25,1000);
GivePlayerWeapon(playerid,29,1000);
GivePlayerWeapon(playerid,3,999999);
GivePlayerMoney(playerid,100000);
SetPlayerColor(playerid, 0x0000FFAA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, -1618.1714,685.0083,7.1875);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s {ABCDEF}rendõr lett!\", pName);
SendClientMessageToAll(0xFFFFFFAA,string);
SendClientMessage(playerid, 0x33AA33AA, \"Rendõr lettél:)\");
GameTextForPlayer(playerid,\"Rendõr lettél!\", 5000, 3);
return 1;
}
CMD:fireman(playerid, params[])
{
SetPlayerSkin(playerid,279);
ResetPlayerWeapons(playerid);
ResetPlayerMoney(playerid);
GivePlayerWeapon(playerid,42,1000);
GivePlayerMoney(playerid,20000);
SetPlayerColor(playerid, 0xAA3333AA);
SetPlayerHealth(playerid,100);
SetPlayerPos(playerid, -2026.7089,67.4193,28.6916);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s {ABCDEF}tûzoltó lett!\", pName);
SendClientMessageToAll(0xFFFFFFAA,string);
SendClientMessage(playerid, 0x33AA33AA, \"Tûzoltó lettél\");
GameTextForPlayer(playerid,\"Tûzoltó lettél!\", 5000, 3);
return 1;
}
CMD:soldier(playerid, params[])
{
SetPlayerSkin(playerid,287);
ResetPlayerWeapons(playerid);
ResetPlayerMoney(playerid);
GivePlayerWeapon(playerid,17,50);
GivePlayerWeapon(playerid,28,1000);
GivePlayerWeapon(playerid,30,1000);
GivePlayerMoney(playerid,100000);
SetPlayerColor(playerid,0x33AA33AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 211.4996,1812.2880,21.8594);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s {ABCDEF}katona lett!\", pName);
SendClientMessageToAll(0xFFFFFFAA,string);
SendClientMessage(playerid, 0x33AA33AA, \"Katona lettél!\");
GameTextForPlayer(playerid,\"Katona lettél\", 5000, 3);
return 1;
}
CMD:maffia(playerid, params[])
{
SetPlayerSkin(playerid,120);
ResetPlayerWeapons(playerid);
ResetPlayerMoney(playerid);
GivePlayerWeapon(playerid,29,1000);
GivePlayerWeapon(playerid,32,1000);
GivePlayerMoney(playerid, 10000);
SetPlayerColor(playerid,0x000000AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 1689.5740,1000.9226,10.8203);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s {ABCDEF}maffiózó lett!\", pName);
SendClientMessageToAll(0xFFFFFFAA,string);
SendClientMessage(playerid, 0x33AA33AA, \"Maffiózó lettél!\");
GameTextForPlayer(playerid,\"Maffiózó lettél!\", 5000, 3);
return 1;
}
CMD:gipsy(playerid, params[])
{
SetPlayerSkin(playerid,0);
ResetPlayerWeapons(playerid);
ResetPlayerMoney(playerid);
GivePlayerWeapon(playerid,5,9999);
GivePlayerMoney(playerid,3000);
SetPlayerColor(playerid,0x9900FFAA);
SetPlayerHealth(playerid, 70);
SetPlayerPos(playerid, 2453.5452,-1714.1440,13.6355);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s {ABCDEF}cigány lett!\", pName);
SendClientMessageToAll(0xFFFFFFAA,string);
SendClientMessage(playerid, 0x33AA33AA, \"Cigány lettél! xD\");
GameTextForPlayer(playerid,\"Cigány lettél!\", 5000, 3);
return 1;
}
CMD:flip(playerid, params[])
{
if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage( playerid, -1, \"Nem jármûben ülsz!\" );
new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID, Angle);
SetVehiclePos(VehicleID, X, Y, Z);
SetVehicleZAngle(VehicleID, Angle);
SendClientMessage(playerid, 0x9900FFAA,\"Autó Felfordítva\");
return 1;
}
CMD:god(playerid, params[])
{
if(GetPlayerMoney(playerid) < 20000000) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 20000000$-od !\"); }
SetPlayerHealth(playerid, 999999);
GivePlayerMoney(playerid,-20000000);
SendClientMessage(playerid, 0x00BFFFAA, \"Megvetted a GodMódot!!\");
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}bekapcsolta az {33AA33}isten módot!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:black(playerid, params[])
{
SendClientMessage(playerid, 0xFFFFFFAA, \"Színed: {000000}fekete!\");
SetPlayerColor(playerid,0x000000AA);
return 1;
}
CMD:white(playerid, params[])
{
SendClientMessage(playerid, 0xFFFFFFAA, \"Színed: fehér!\");
SetPlayerColor(playerid,0xFFFFFFAA);
return 1;
}
CMD:blue(playerid, params[])
{
SendClientMessage(playerid, 0xFFFFFFAA, \"Színed: {00FFFF}kék!\");
SetPlayerColor(playerid,0x00FFFFAA);
return 1;
}
CMD:red(playerid, params[])
{
SendClientMessage(playerid, 0xFFFFFFAA, \"Színed: {FF0606}piros!\");
SetPlayerColor(playerid,0xFF0606FF);
return 1;
}
CMD:green(playerid, params[])
{
SendClientMessage(playerid, 0xFFFFFFAA, \"Színed: {33AA33}zöld!\");
SetPlayerColor(playerid,0x33AA33AA);
return 1;
}
CMD:v(playerid, params[])
{
SendClientMessage(playerid, 0xffffffff, \"{FF0000}Használat: {057CEA}/car {33FF33}[modelid/jármûnév] {CDF917}[szín1] {33CCFF}[szín2]\");
return 1;
}
CMD:afk(playerid, params[])
{
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, 0x33AA33AA, \"AFK Mód: {FF0606}BE! Visszatéréshez {00FFFF}/afkoff\");
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s {FF0606}elment a géptõl!\", pName);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
CMD:afkoff(playerid, params[])
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, 0x33AA33AA, \"AFK Mód: {FF0606}KI!\");
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"%s {FF0606}visszajött a géphez!\", pName);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
public OnPlayerCommandPerformed ( playerid, cmdtext [ ], success)
{
if ( !success )
{
return ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\"{33AA33}HIBÁS PARANCS!:\",\"{0000FF}/car - {33AA33}Autók\\n{0000FF}/weapons - {33AA33}Fegyverek\\n{0000FF}/colors - {33AA33}Színek\\n{0000FF}/teles - {33AA33}Teleportok\\n{0000FF}/kill - {33AA33}Meghalsz\\n{0000FF}/cast - {33AA33}Elérhetõ kasztok\\n\",\"Oké\",\"Oké\");
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, 0xFFFFFFFF, \"==============\");
SendClientMessage(playerid, 0x33AA33AA, \"Javítás: /rep\");
SendClientMessage(playerid, 0x33AA33AA, \"Felállítás: /flip\");
SendClientMessage(playerid, 0xFFFFFFFF, \"==============\");
return 1;
}
public OnPlayerUpdate(playerid) {
SetPlayerScore(playerid, GetPlayerMoney(playerid));
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(clickedplayerid,x,y,z);
SetPlayerPos(playerid,x,y,z);
return 1;
}
Vagy...
http://www.mediafire.com/?rtbhxvt9ugj6e11