[Pomoc] Auto.motor

Započeo Kunnaâ„¢, Januar 05, 2012, 14:46:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Scripta koju koristim : Edit STreet Stories
Problem: Kako da napravim da mogu otvarati gjepek haubu i ono paliti svjetla dali neko zna da mi pomogne molim vass
Dio Scripte: /

Pa koristi malo tražilicu.Skini sebi Advanced Vehicle Control:http://forum.sa-mp.com/showthread.php?t=303344

Al kad ubacim tu fs nece nijedna komanda do cega jeee Mozel mi neko reci al ta komanda radi od fs
Poslednja Izmena: Januar 05, 2012, 21:04:56 POSLE PODNE od Kunna-[EG]97

Pa ubaci je u filterscripte i pod server.cfg stavi kako se zove.Ako nemore uÄ'i na server logiraj se kao rcon admin i nakon toga ukucaj /rcon loadfs "IME FS"

nije to problem ona sve radi ali nece ostale komande kada nju ubacim nece naprimjer gotols nece ono glavno kupi rentaj i to itd.. znas li sta je problem

I meni ja ubacim taj FS ne radi mi druge komande :S
Trazim Skriptera! Nagrada Head Admin

Zna li neko kako hitno mi jeee kako promjeniti do cega je molim vas pozuriteee

Oceli nam neko pomoc :S
Trazim Skriptera! Nagrada Head Admin

Pomocicu vam ja zabranom pisanja ako budete tako sinhronizovano nastavili da spamujete ovu temu kao da ste u horu. Strpite se malo, sacekajte moderatore ovog pdf-a ili vec nekog ko zna/ima vremena da vam pomogne.
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri

probajte to ubacit u mod ako s FS neradi

e to ej veliki problem :S Neznam kako da ubacim jer sam pocetnik!
Trazim Skriptera! Nagrada Head Admin

[BUL]Salvatore

Citat: Tong1950Po poslato Januar 06, 2012, 13:24:36 POSLE PODNE
e to ej veliki problem :S Neznam kako da ubacim jer sam pocetnik!
Daj mi na PM šta sve u FilterScripti imaš pa ću ti ja posložiti gdje šta staviti i postati ovdje.

Citat: [TL:RP] Danielâ,,¢ poslato Januar 06, 2012, 13:27:38 POSLE PODNE
Citat: Tong1950Po poslato Januar 06, 2012, 13:24:36 POSLE PODNE
e to ej veliki problem :S Neznam kako da ubacim jer sam pocetnik!
Daj mi na PM šta sve u FilterScripti imaš pa ću ti ja posložiti gdje šta staviti i postati ovdje.

Jeli bi moga priko teamvivera? Neznam sta da ti posaljem!
Trazim Skriptera! Nagrada Head Admin

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#define COLOR1 0x00FFFFFF

#define FILTERSCRIPT

new Lights[MAX_PLAYERS];
new Trunk[MAX_PLAYERS];
new Hood[MAX_PLAYERS];
new Alarm[MAX_PLAYERS];
new Engine[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
Lights[playerid]=0;
Trunk[playerid]=0;
Hood[playerid]=0;
Alarm[playerid]=0;
Engine[playerid]=0;
return 1;
}

public OnPlayerDisconnect(playerid)
{
Lights[playerid]=0;
Trunk[playerid]=0;
Hood[playerid]=0;
Alarm[playerid]=0;
Engine[playerid]=0;
return 1;
}

public OnFilterScriptInit()
{
print("\n----------------------------------");
print(" Car System by Axel/TLG - True Life Gaming");
print(" www.truelifegaming.at.ua");
print(" Official TLG Roleplay Website");
print("----------------------------------\n");
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerInAnyVehicle(playerid))
{
if (strcmp("/car", cmdtext, true, 10) == 0)
{
    ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Vehicle Controls", "Engine\nLights\nTrunk\nHood\nAlarm", "Select", "Cancel");
}
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You are not in a vehicle!");
}
return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
    switch(dialogid)
{
case 1000:
{
switch(listitem)
{
    case 0:
    {
        ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Vehicle Controls", "On\nOff", "Select", "Cancel");
}
    case 1:
    {
        ShowPlayerDialog(playerid, 1001, DIALOG_STYLE_LIST, "Vehicle Controls", "On\nOff", "Select", "Cancel");
}
case 2:
{
ShowPlayerDialog(playerid, 1002, DIALOG_STYLE_LIST, "Vehicle Controls", "Open\nClose", "Select", "Cancel");
}
case 3:
{
    ShowPlayerDialog(playerid, 1003, DIALOG_STYLE_LIST, "Vehicle Controls", "Open\nClose", "Select", "Cancel");
}
case 4:
{
    ShowPlayerDialog(playerid, 1004, DIALOG_STYLE_LIST, "Vehicle Controls", "On\nOff", "Select", "Cancel");
}
}
}
case 999:
{
    switch(listitem)
    {
        case 0:
        {
            if(Engine[playerid]==0)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR1, "You have turned your engine on!");
Engine[playerid]=1;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're engine is already on!");
}
}
case 1:
{
    if(Engine[playerid]==1)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR1, "You have turned your engine off!");
Engine[playerid]=0;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're engine already off!");
}
}
}
}
case 1001:
{
    switch(listitem)
    {
        case 0:
        {
if(Lights[playerid]==0)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR1, "You have turned your lights on!");
Lights[playerid]=1;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're lights are already on!");
}
}
case 1:
{
    if(Lights[playerid]==1)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR1, "You have turned your lights off!");
Lights[playerid]=0;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're lights are already off!");
}
}
}
}
case 1002:
{
    switch(listitem)
    {
        case 0:
        {
if(Trunk[playerid]==0)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
SendClientMessage(playerid, COLOR1, "You have opened your trunk!");
Trunk[playerid]=1;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're trunk is already open!");
}
}
case 1:
{
    if(Trunk[playerid]==1)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
SendClientMessage(playerid, COLOR1, "You have closed your trunk!!");
Trunk[playerid]=0;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're trunk is already closed!");
}
}
}
}
case 1003:
{
    switch(listitem)
    {
        case 0:
        {
if(Hood[playerid]==0)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
SendClientMessage(playerid, COLOR1, "You have opened your hood!");
Hood[playerid]=1;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're hood is already open!");
}
}
case 1:
{
    if(Hood[playerid]==1)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
SendClientMessage(playerid, COLOR1, "You have closed your hood!");
Hood[playerid]=0;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're hood is already closed!");
}
}
}
}
case 1004:
{
    switch(listitem)
    {
        case 0:
        {
if(Alarm[playerid]==0)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR1, "You have turned on your vehicles alarm!");
Alarm[playerid]=1;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're alarm is already on!");
}
}
case 1:
{
    if(Alarm[playerid]==1)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR1, "You have turned off your vehicle alarm!");
Alarm[playerid]=0;
return 1;
}
else
{
    SendClientMessage(playerid, COLOR1, "You're alarm is already off!");
}
}
}
}
}
}
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
if(GetPlayerState(playerid) == 2)
{
    new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Engine[playerid]=0;
}
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
    new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
Alarm[playerid]=0;
}
if(GetPlayerState(playerid) == 2 && newstate == PLAYER_STATE_ONFOOT)
{
    new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Engine[playerid]=0;
}
return 1;
}


EVO ovo je ta fs mozes li ispraviti mozda nesta nevalj pogledaj ja kad je ubacim samo ona radi i  njene komande a nijedna druga komanda nece cak ni ono kupi i rentaj i ono gotols  mozetel sto brze to rijesiti    :'(   :'(   :-\