Hy én úgy is unatkozom tessék meg írtam neked! Ha jó akkor mehet a +!
Szóval ez úgy mûködik hogy meg nyitod a pawnot bele rakod így ahogy van mármint a Code-ba ami van
És le konvertálod hibátlanul le fog futni!
Tesztelve nem volt!
Készítése idõ:5-10perc
Készítette by: popike99 //Készítette by popike99
//tesztelve nem volt de bíztos h jó ha nem akkor csak pötyögj
#include a_samp
#define piros 0xFF0000AA
#define feher 0xFFFFFFAA
#define sarga 0xFFFF00AA
#define DIALOG_NEON 0
#define AttachObjectToVehicle
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/neon\", true)==0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,piros,\"A parancs használatához jármûben kell lenned!\");
{
if(GetPlayerVehicleID(playerid == 441 || GetPlayerVehicleID(playerid == 446 || GetPlayerVehicleID(playerid == 448 || GetPlayerVehicleID(playerid == 463 || GetPlayerVehicleID(playerid == 468 || GetPlayerVehicleID(playerid == 476 || GetPlayerVehicleID(playerid == 481 || GetPlayerVehicleID(playerid == 510 || GetPlayerVehicleID(playerid == 513 || GetPlayerVehicleID(playerid == 520 || GetPlayerVehicleID(playerid == 521 || GetPlayerVehicleID(playerid == 522)))))))))))))
{
SendClientMessage(playerid, piros, \"Nem ülsz megfelelõ jármûben!\");
}
else
{
ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, \"{FFFF00}Válassz neont!\", \"Kék neon\\nPiros neon\\nZöld neon\\nFehér neon\\nRózsaszín neon\\nSárga neon\\nBelsõ neon\\nHátsó neon\\nMinden neon törlése\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
return 0;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, sarga,\"Nincs neon a kocsidon írd be (/neon).\");
return 1;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_NEON)
{
if(response)
{
if(listitem == 0)
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"Neon\", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, \"Neon1\", CreateObject(18648,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"Neon\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"Neon1\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem == 1)
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"neon2\", CreateObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, \"neon3\", CreateObject(18647,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"neon2\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"neon3\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem == 2)
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"neon4\", CreateObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, \"neon5\", CreateObject(18649,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"neon4\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"neon5\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem == 3)
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"neon6\", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, \"neon7\", CreateObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"neon6\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"neon7\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem == 4)
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"neon8\", CreateObject(18651,0,0,0,0,0,0));
SetPVarInt(playerid, \"neon9\", CreateObject(18651,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"neon8\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"neon9\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem == 5)
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"neon10\", CreateObject(18650,0,0,0,0,0,0));
SetPVarInt(playerid, \"neon11\", CreateObject(18650,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"neon10\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"neon11\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem == 6)
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"neon12\", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, \"neon13\", CreateObject(18646,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"neon12\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"neon13\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem == 7)
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"back\", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, \"back1\", CreateObject(18646,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"back\"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"back1\"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem ==
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"front\", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, \"front1\", CreateObject(18646,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"front\"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"front1\"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
SendClientMessage(playerid, feher, \"neon felhelyezve a jármûvedre!\");
}
if(listitem == 10)
{
DestroyObject(GetPVarInt(playerid, \"neon\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon1\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon2\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon3\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon4\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon5\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon6\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon7\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon8\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon9\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon10\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon11\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon12\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"neon13\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"interior\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"interior1\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"back\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"back1\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"front\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"front1\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"undercover\"));
DeletePVar(playerid, \"Status\");
DestroyObject(GetPVarInt(playerid, \"undercover1\"));
DeletePVar(playerid, \"Status\");
SendClientMessage(playerid, feher, \"Összes neon törölve jármûvedrõl!\");
}
}
}
return 0;
}