new weaponNames[47][] = {
{
{\"okol\"}, {\"boxer\"}, {\"golfuto\"}, {\"gumibot\"}, {\"kes\"}, {\"baseball\"}, {\"aso\"}, {\"billiarduto\"}, {\"katana\"},
{\"lancfuresz\"}, {\"lvibrator\"}, {\"kfvibrator\"}, {\"nfvibrator\"}, {\"evibrator\"}, {\"virag\"}, {\"jarobot\"}, {\"granat\"},
{\"konnygaz\"}, {\"molotov\"},{-1}, {-1}, {-1}, {\"9mm\"}, {\"h9mm\"},{\"desert\"}, {\"shotgun\"}, {\"sawnoff\"},
{\"combat\"}, {\"microsmg\"},{\"mp5\"}, {\"ak47\"}, {\"m4\"}, {\"tec9\"}, {\"country\"}, {\"sniper\"},{\"rocket\"},
{\"heat\"},{\"flame\"},{\"minigun\"},{\"satchel\"},{\"detonator\"},{\"spray\"}, {\"fire\"},{\"kamera\"},{\"ejjellato\"},
{\"termal\"}, {\"ejto\"}
};
new weaponNamesSCM[47][] = {
{\"Ököl\"},{\"Boxer\"},{\"Golfütõ\"}, {\"Gumibot\"},{\"Kés\"},{\"Baseball ütõ\"},{\"Ásó\"},{\"Billiárd ütõ\"},{\"Katana kard\"},
{\"Láncfûrész\"},{\"Lila vibrátor\"},{\"Kicsi fehér vibrátor\"},{\"Nagy fehér vibrátor\"},{\"Ezüst vibrátor\"},{\"Virágcsokor\"},
{\"Járóbot\"},{\"Gránát\"},{\"Könnygáz\"},{\"Molotov koktél\"},{\"Semmi\"}, {\"Semmi\"}, {\"Semmi\"},{\"9miliméteres pisztony\"}, {\"Hangtompítós 9miliméteres pisztoly\"},
{\"Sivatagi sas pisztoly\"},{\"Sörétes puska\"}, {\"Fûrészelt csövõ sörétes puska\"}, {\"Harci sörétes puska\"},{\"Micro SMG géppisztoly\"},
{\"MP5 géppisztoly\"},{\"Kalasnyikov gépkarabély\"}, {\"M4A1 gépkarabély\"}, {\"TEC9 géppisztoly\"}, {\"Vidéki puska\"}, {\"Orvlövész puska\"},
{\"Rakétavetõ\"}, {\"Hõirányítós rakétavetõ\"},{\"Lángszóró\"},{\"Minigun\"}, {\"Táskás bomba\"}, {\"Detonátor\"}, {\"Gázspré\"},
{\"Tûzoltó készülék\"},{\"Kamera\"},{\"Éjjellátó szemüveg\"},{\"Termál szemüveg\"},{\"Ejtõernyõ\"}
};
new VehicleNames[212][] = {
{\"landstalker\"},{\"bravura\"},{\"buffalo\"},{\"linerunner\"},{\"perrenial\"},{\"sentinel\"},{\"dumper\"},
{\"firetruck\"},{\"trashmaster\"},{\"stretch\"},{\"manana\"},{\"infernus\"},{\"Voodoo\"},{\"pony\"},{\"mule\"},
{\"cheetah\"},{\"ambulance\"},{\"leviathan\"},{\"moonbeam\"},{\"esperanto\"},{\"taxi\"},{\"washington\"},
{\"bobcat\"},{\"mr whoopee\"},{\"bf injection\"},{\"hunter\"},{\"premier\"},{\"enforcer\"},{\"securicar\"},
{\"banshee\"},{\"predator\"},{\"bus\"},{\"rhino\"},{\"barracks\"},{\"hotknife\"},{\"trailer 1\"},{\"previon\"},
{\"coach\"},{\"cabbie\"},{\"stallion\"},{\"rumpo\"},{\"rc bandit\"},{\"romero\"},{\"packer\"},{\"monster\"},
{\"admiral\"},{\"squalo\"},{\"seasparrow\"},{\"pizzaboy\"},{\"tram\"},{\"trailer 2\"},{\"turismo\"},
{\"speeder\"},{\"reefer\"},{\"tropic\"},{\"flatbed\"},{\"yankee\"},{\"caddy\"},{\"solair\"},{\"berkley\'s rc Van\"},
{\"skimmer\"},{\"pcj-600\"},{\"faggio\"},{\"freeway\"},{\"rc baron\"},{\"rc raider\"},{\"glendale\"},{\"oceanic\"},
{\"sanchez\"},{\"sparrow\"},{\"patriot\"},{\"quad\"},{\"coastguard\"},{\"dinghy\"},{\"hermes\"},{\"sabre\"},
{\"rustler\"},{\"zr-350\"},{\"walton\"},{\"regina\"},{\"comet\"},{\"bmx\"},{\"burrito\"},{\"camper\"},{\"marquis\"},
{\"baggage\"},{\"dozer\"},{\"maverick\"},{\"news chopper\"},{\"rancher\"},{\"fbi rancher\"},{\"Virgo\"},{\"greenwood\"},
{\"jetmax\"},{\"hotring\"},{\"sandking\"},{\"blista compact\"},{\"police maverick\"},{\"boxville\"},{\"benson\"},
{\"mesa\"},{\"rc goblin\"},{\"hotring racer a\"},{\"hotring racer b\"},{\"bloodring banger\"},{\"rancher\"},
{\"super gt\"},{\"elegant\"},{\"journey\"},{\"bike\"},{\"mountain bike\"},{\"beagle\"},{\"cropdust\"},{\"stunt\"},
{\"tanker\"}, {\"roadtrain\"},{\"nebula\"},{\"majestic\"},{\"buccaneer\"},{\"shamal\"},{\"hydra\"},{\"fcr-900\"},
{\"nrg-500\"},{\"hpV1000\"},{\"cement truck\"},{\"tow truck\"},{\"fortune\"},{\"cadrona\"},{\"fbi truck\"},
{\"willard\"},{\"forklift\"},{\"tractor\"},{\"combine\"},{\"feltzer\"},{\"remington\"},{\"slamvan\"},
{\"blade\"},{\"freight\"},{\"streak\"},{\"Vortex\"},{\"Vincent\"},{\"bullet\"},{\"clover\"},{\"sadler\"},
{\"firetruck la\"},{\"hustler\"},{\"intruder\"},{\"primo\"},{\"cargobob\"},{\"tampa\"},{\"sunrise\"},{\"merit\"},
{\"utility\"},{\"nevada\"},{\"yosemite\"},{\"windsor\"},{\"monster a\"},{\"monster b\"},{\"uranus\"},{\"jester\"},
{\"sultan\"},{\"stratum\"},{\"elegy\"},{\"raindance\"},{\"rc tiger\"},{\"flash\"},{\"tahoma\"},{\"savanna\"},
{\"bandito\"},{\"freight flat\"},{\"streak carriage\"},{\"kart\"},{\"mower\"},{\"duneride\"},{\"sweeper\"},
{\"broadway\"},{\"tornado\"},{\"at-400\"},{\"dft-30\"},{\"huntley\"},{\"stafford\"},{\"bf-400\"},{\"newsvan\"},
{\"tug\"},{\"trailer 3\"},{\"emperor\"},{\"wayfarer\"},{\"euros\"},{\"hotdog\"},{\"club\"},{\"freight carriage\"},
{\"trailer 3\"},{\"andromada\"},{\"dodo\"},{\"rc cam\"},{\"launch\"},{\"police car (lspd)\"},{\"police car (sfpd)\"},
{\"police car (lVpd)\"},{\"police ranger\"},{\"picador\"},{\"s.w.a.t. Van\"},{\"alpha\"},{\"phoenix\"},{\"glendale\"},
{\"sadler\"},{\"luggage trailer a\"},{\"luggage trailer b\"},{\"stair trailer\"},{\"boxville\"},{\"farm plow\"},
{\"utility trailer\"}
};
new VehicleNamesSCM[212][] = {
{\"Landstalker\"},{\"Bravura\"},{\"Buffalo\"},{\"Linerunner\"},{\"Perrenial\"},{\"Sentinel\"},{\"Dumper\"},
{\"Firetruck\"},{\"Trashmaster\"},{\"Stretch\"},{\"Manana\"},{\"Infernus\"},{\"Voodoo\"},{\"Pony\"},{\"Mule\"},
{\"Cheetah\"},{\"Ambulance\"},{\"Leviathan\"},{\"Moonbeam\"},{\"Esperanto\"},{\"Taxi\"},{\"Washington\"},
{\"Bobcat\"},{\"Mr Whoopee\"},{\"BF Injection\"},{\"Hunter\"},{\"Premier\"},{\"Enforcer\"},{\"Securicar\"},
{\"Banshee\"},{\"Predator\"},{\"Bus\"},{\"Rhino\"},{\"Barracks\"},{\"Hotknife\"},{\"Trailer 1\"},{\"Previon\"},
{\"Coach\"},{\"Cabbie\"},{\"Stallion\"},{\"Rumpo\"},{\"RC Bandit\"},{\"Romero\"},{\"Packer\"},{\"Monster\"},
{\"Admiral\"},{\"Squalo\"},{\"Seasparrow\"},{\"Pizzaboy\"},{\"Tram\"},{\"Trailer 2\"},{\"Turismo\"},
{\"Speeder\"},{\"Reefer\"},{\"Tropic\"},{\"Flatbed\"},{\"Yankee\"},{\"Caddy\"},{\"Solair\"},{\"Berkley\'s RC Van\"},
{\"Skimmer\"},{\"PCJ-600\"},{\"Faggio\"},{\"Freeway\"},{\"RC Baron\"},{\"RC Raider\"},{\"Glendale\"},{\"Oceanic\"},
{\"Sanchez\"},{\"Sparrow\"},{\"Patriot\"},{\"Quad\"},{\"Coastguard\"},{\"Dinghy\"},{\"Hermes\"},{\"Sabre\"},
{\"Rustler\"},{\"ZR-350\"},{\"Walton\"},{\"Regina\"},{\"Comet\"},{\"BMX\"},{\"Burrito\"},{\"Camper\"},{\"Marquis\"},
{\"Baggage\"},{\"Dozer\"},{\"Maverick\"},{\"News Chopper\"},{\"Rancher\"},{\"FBI Rancher\"},{\"Virgo\"},{\"Greenwood\"},
{\"Jetmax\"},{\"Hotring\"},{\"Sandking\"},{\"Blista Compact\"},{\"Police Maverick\"},{\"Boxville\"},{\"Benson\"},
{\"Mesa\"},{\"RC Goblin\"},{\"Hotring Racer A\"},{\"Hotring Racer B\"},{\"Bloodring Banger\"},{\"Rancher\"},
{\"Super GT\"},{\"Elegant\"},{\"Journey\"},{\"Bike\"},{\"Mountain Bike\"},{\"Beagle\"},{\"Cropdust\"},{\"Stunt\"},
{\"Tanker\"}, {\"Roadtrain\"},{\"Nebula\"},{\"Majestic\"},{\"Buccaneer\"},{\"Shamal\"},{\"Hydra\"},{\"FCR-900\"},
{\"NRG-500\"},{\"HPV1000\"},{\"Cement Truck\"},{\"Tow Truck\"},{\"Fortune\"},{\"Cadrona\"},{\"FBI Truck\"},
{\"Willard\"},{\"Forklift\"},{\"Tractor\"},{\"Combine\"},{\"Feltzer\"},{\"Remington\"},{\"Slamvan\"},
{\"Blade\"},{\"Freight\"},{\"Streak\"},{\"Vortex\"},{\"Vincent\"},{\"Bullet\"},{\"Clover\"},{\"Sadler\"},
{\"Firetruck LA\"},{\"Hustler\"},{\"Intruder\"},{\"Primo\"},{\"Cargobob\"},{\"Tampa\"},{\"Sunrise\"},{\"Merit\"},
{\"Utility\"},{\"Nevada\"},{\"Yosemite\"},{\"Windsor\"},{\"Monster A\"},{\"Monster B\"},{\"Uranus\"},{\"Jester\"},
{\"Sultan\"},{\"Stratum\"},{\"Elegy\"},{\"Raindance\"},{\"RC Tiger\"},{\"Flash\"},{\"Tahoma\"},{\"Savanna\"},
{\"Bandito\"},{\"Freight Flat\"},{\"Streak Carriage\"},{\"Kart\"},{\"Mower\"},{\"Duneride\"},{\"Sweeper\"},
{\"Broadway\"},{\"Tornado\"},{\"AT-400\"},{\"DFT-30\"},{\"Huntley\"},{\"Stafford\"},{\"BF-400\"},{\"Newsvan\"},
{\"Tug\"},{\"Trailer 3\"},{\"Emperor\"},{\"Wayfarer\"},{\"Euros\"},{\"Hotdog\"},{\"Club\"},{\"Freight Carriage\"},
{\"Trailer 3\"},{\"Andromada\"},{\"Dodo\"},{\"RC Cam\"},{\"Launch\"},{\"Police Car (LSPD)\"},{\"Police Car (SFPD)\"},
{\"Police Car (LVPD)\"},{\"Police Ranger\"},{\"Picador\"},{\"S.W.A.T. Van\"},{\"Alpha\"},{\"Phoenix\"},{\"Glendale\"},
{\"Sadler\"},{\"Luggage Trailer A\"},{\"Luggage Trailer B\"},{\"Stair Trailer\"},{\"Boxville\"},{\"Farm Plow\"},
{\"Utility Trailer\"}
};
public OnPlayerCommandText(playerid, cmdtext[])
{
new str[128];
format(str, sizeof str, \"/%s\", VehicleNames[
for(new i; i < 212; i++)
{
new str[128];
format(str, sizeof str, \"/%s\", VehicleNames);
if(strcmp(cmdtext, str, true))
{
new car, string[128], Float:X, Float:Y, Float:Z, Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
car = CreateVehicle(i+400, X, Y, Z, A, -1);
PutPlayerInVehicle(playerid, car, 0);
format(string, sizeof string, \"[JÁRMÛ]: Lehívtál egy %s\", rag(VehicleNamesSCM, 3));
SendClientMessage(playerid, 0x00FFFFAA, string);
return 1;
}
}
for(new i; i < 36; i++)
{
new str[128];
format(str, sizeof str, \"/%s\", weaponNames);
if(strcmp(cmdtext, str, true))
{
new string[128];
GivePlayerWeapon(playerid, i, 500);
format(string, sizeof string, \"[FEGYVER]: Lehívtál egy %s\", rag(weaponNamesSCM, 3));
SendClientMessage(playerid, 0x00FFFFAA, string);
return 1;
}
}
return 0;
}
stock rag(szo[],tipus) // 1 - val-vel 2 - nak-nek 3 - t
{
new string[128];
new string2[128];
if(tipus == 1 || tipus == 2 || tipus == 3)
{
new xd = strlen(szo);
format(string, sizeof(string), \"%s\", szo);
strdel(string, 0, xd-2);
new sorszam = strfind(string, \"a\");
if(sorszam == 1)
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, xd-1, xd);
if(tipus == 1) format(string2,sizeof(string2),\"%sával\", string);
else if(tipus == 2) format(string2,sizeof(string2),\"%sának\", string);
else if(tipus == 3) format(string2,sizeof(string2),\"%sát\", string);
return string2;
}
else
{
sorszam = strfind(string, \"e\");
if(sorszam == 1)
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, xd-1, xd);
if(tipus == 1) format(string2,sizeof(string2),\"%sével\", string);
else if(tipus == 2) format(string2,sizeof(string2),\"%sének\", string);
else if(tipus == 3) format(string2,sizeof(string2),\"%sét\", string);
return string2;
}
else
{
sorszam = strfind(string, \"i\");
if(sorszam == 1)
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, 0, xd-3);
if(tipus == 3) { format(string,sizeof(string),\"%st\", szo); return string2; }
if( strfind(string, \"a\") != -1 || strfind(string, \"o\") != -1 || strfind(string, \"u\") != -1)
{
if(tipus == 1) format(string2,sizeof(string2),\"%sval\", szo);
else if(tipus == 2) format(string2,sizeof(string2),\"%snak\", szo);
return string2;
}
else if(strfind(string, \"e\") != -1 || strfind(string, \"i\") != -1)
{
if(tipus == 1) format(string2,sizeof(string2),\"%svel\", szo);
else if(tipus == 2) format(string2,sizeof(string2),\"%snek\", szo);
return string2;
}
else
{
format(string2,sizeof(string2),\"%svel\", szo);
return string2;
}
}
else
{
sorszam = strfind(string, \"o\");
if(sorszam == 1)
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, xd-1, xd);
if(tipus == 1) format(string2,sizeof(string2),\"%sóval\", string);
else if(tipus == 2) format(string2,sizeof(string2),\"%sónak\", string);
else if(tipus == 3) format(string2,sizeof(string2),\"%sót\", string);
return string2;
}
else
{
sorszam = strfind(string, \"u\");
if(sorszam == 1)
{
if(tipus == 1) format(string2,sizeof(string2),\"%sval\", szo);
else if(tipus == 2) format(string2,sizeof(string2),\"%snak\", szo);
else if(tipus == 3) format(string2,sizeof(string2),\"%st\", szo);
return string2;
}
else
{
if(tipus == 1 || tipus == 2)
{
new string3[10];
format(string,sizeof(string),\"%s\", szo);
if(tipus==1)
{
if(strfind(string, \"cs\") != -1 || strfind(string, \"dz\") != -1 || strfind(string, \"dzs\") != -1 || strfind(string, \"gy\") != -1 || strfind(string, \"ly\") != -1 || strfind(string, \"ny\") != -1 || strfind(string, \"sz\") != -1 || strfind(string, \"ty\") != -1 || strfind(string, \"zs\") != -1)
{
if(strfind(string, \"dzs\") != -1)
{
strdel(string, 0, xd-3);
if(strfind(string, \"dzs\") != -1)
{
strmid(string3, szo, 0, xd-2);
format(string2,sizeof(string2),\"%sdzsel\", string3);
return string2;
}
}
strdel(string,0, xd-2);
if(strfind(string, \"cs\") != -1 || strfind(string, \"dz\") != -1 || strfind(string, \"gy\") != -1 || strfind(string, \"ly\") != -1 || strfind(string, \"ny\") != -1 || strfind(string, \"sz\") != -1 || strfind(string, \"ty\") != -1 || strfind(string, \"zs\") != -1)
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, 0, xd-3);
if( strfind(string, \"a\") != -1 || strfind(string, \"o\") != -1 || strfind(string, \"u\") != -1)
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, xd-1, xd);
strmid(string3, szo, xd-2, xd);
format(string2,sizeof(string2),\"%s%sal\", string,string3);
return string2;
}
else
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, xd-1, xd);
strmid(string3, szo, xd-2, xd);
format(string2,sizeof(string2),\"%s%sel\", string,string3);
return string2;
}
}
}
}
strdel(string, 0, xd-3);
if( strfind(string, \"a\") != -1 || strfind(string, \"o\") != -1 || strfind(string, \"u\") != -1)
{
strmid(string3, szo, xd-1, xd);
if(tipus == 1) format(string2,sizeof(string2),\"%s%sal\", szo, string3);
else if(tipus == 2) format(string2,sizeof(string2),\"%snak\", szo);
return string2;
}
else
{
strmid(string3, szo, xd-1, xd);
if(tipus == 1) format(string2,sizeof(string2),\"%s%sel\", szo, string3);
else if(tipus == 2) format(string2,sizeof(string2),\"%snek\", szo);
return string2;
}
}
else if(tipus == 3)
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, 0, xd-1);
if(strfind(string, \"j\") != -1 || strfind(string, \"l\") != -1 || strfind(string, \"n\") != -1 || strfind(string, \"r\") != -1 || strfind(string, \"s\") != -1 || strfind(string, \"y\") != -1 || strfind(string, \"z\") != -1)
{
format(string2,sizeof(string2),\"%st\", szo);
return string2;
}
else
{
format(string,sizeof(string),\"%s\", szo);
strdel(string, 0, xd-3);
if( strfind(string, \"a\") != -1 || strfind(string, \"o\") != -1 || strfind(string, \"u\") != -1)
{
format(string2,sizeof(string2),\"%sot\", szo);
return string2;
}
else
{
format(string2,sizeof(string2),\"%set\", szo);
return string2;
}
}
}
}
}
}
}
}
}
else format(string, sizeof(string), \"Típus nem jó\");
return string;
}
Remélem megy