/*
--------------------------------------------------------------------------------
---------------------Tunning FS By Pioh--------------------------
--------------------------------------------------------------------------------
*/
#include <a_samp>
#include <a_players>
#if defined FILTERSCRIPT
#else
#endif
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" -----------Einer Macht /tunning-----------");
print(" ------------Tunning-FS-BY-Pioh-----------");
print(" ----\n");
return 1;
}
new VehicleName[][] =
{
"Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
"Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
"Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
"Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
"Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",
"Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
"Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
"Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "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", "Boxvillde", "Benson", "Mesa", "RC Goblin",
"Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
"Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "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", "Hustler", "Intruder", "Primo",
"Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
"Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
"Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
"Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
"Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
"News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
"Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
"Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
"Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
"Tiller", "Utility Trailer"
};
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED 0xFF3333AA
#define COLOR_BLUE 0x33AAFFAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BLACK 0x000000AA
forward Dm(playerid);
stock GetVehicleName(playerid)
{
new string[256], i;
format(string,sizeof(string),"Auto name: %s",VehicleName[GetVehicleModel(GetPlayerVehicleID(i))-400]);
SendClientMessage(playerid, COLOR_RED, string);
return 1;
}
stock LockVehicle(vehicleid, bool:lock) {
for(new i; i<MAX_PLAYERS; i++) {
if(lock == true) {
SetVehicleParamsForPlayer(vehicleid, i, 0, 1);
}
else if(lock == false) {
SetVehicleParamsForPlayer(vehicleid, i, 0, 0);
}
}
return true;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dm2", cmdtext, true, 9) == 0)
{
ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "Team", "Gang \nSwat \nTerror", "Ok", "Abbrechen");
SendClientMessage(playerid, COLOR_RED, "Nach 5 Min Ist Für Dich Eine Neue Runde");
SetTimerEx("Dm", 300000, false, "i", playerid);
}}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 99)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid, 2604.6208,2808.9128,10.8203);
SetPlayerSkin(playerid,21);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,28,99999);
GivePlayerWeapon(playerid,34,20);
GivePlayerWeapon(playerid,30,99999);
GivePlayerWeapon(playerid,25,99999);
GivePlayerWeapon(playerid,24,99999);
GivePlayerWeapon(playerid,16,99999);
GivePlayerWeapon(playerid,4,99999);
GivePlayerWeapon(playerid,1,99999);
GivePlayerWeapon(playerid,10,99999);
SetPlayerInterior(playerid,0);
}
}
if(listitem == 1)
{
SetPlayerPos(playerid, 2595.1313,2790.4551,10.8203);
SetPlayerSkin(playerid,285);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,28,99999);
GivePlayerWeapon(playerid,34,20);
GivePlayerWeapon(playerid,30,99999);
GivePlayerWeapon(playerid,25,99999);
GivePlayerWeapon(playerid,24,99999);
GivePlayerWeapon(playerid,16,99999);
GivePlayerWeapon(playerid,4,99999);
GivePlayerWeapon(playerid,1,99999);
GivePlayerWeapon(playerid,10,99999);
SetPlayerInterior(playerid,0);
}
if(listitem == 2)
{
SetPlayerPos(playerid, 2545.7610,2838.3145,10.8203);
SetPlayerSkin(playerid,223);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,28,99999);
GivePlayerWeapon(playerid,34,20);
GivePlayerWeapon(playerid,30,99999);
GivePlayerWeapon(playerid,25,99999);
GivePlayerWeapon(playerid,24,99999);
GivePlayerWeapon(playerid,16,99999);
GivePlayerWeapon(playerid,4,99999);
GivePlayerWeapon(playerid,1,99999);
GivePlayerWeapon(playerid,10,99999);
SetPlayerInterior(playerid,0);
}
}
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_SUBMISSION))
{
ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "Team", "Gang \nSwat \nTerror", "Ok", "Abbrechen");
}
}
public Dm(playerid)
{
SetPlayerPos(playerid,2501.1418,2823.7361,10.8203);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,28,99999);
GivePlayerWeapon(playerid,34,20);
GivePlayerWeapon(playerid,30,99999);
GivePlayerWeapon(playerid,25,99999);
GivePlayerWeapon(playerid,24,99999);
GivePlayerWeapon(playerid,16,99999);
GivePlayerWeapon(playerid,4,99999);
GivePlayerWeapon(playerid,1,99999);
GivePlayerWeapon(playerid,10,99999);
SetPlayerInterior(playerid,0);
GivePlayerMoney(playerid,5000);
SendClientMessage(playerid, COLOR_RED, "Neue Runde Für Dich");
SendClientMessage(playerid, COLOR_RED, "Du Kriegst 5k");
return 1;
}
Ja es geht alles aber ingame funktioniert es nicht also das befehel warum was ist falsch dran?
Der Menu geht auf aber es hat keine funktion
was ist falsch gemacht?