Scripta:moja
Problem:Imam sistem neonki za vip clanove, prije je sve radilo,i od jednom kada kucam /vip i koristi opcije i idem neonke i stavim bilo koju,pise postavili ste plave neonke ili bilo koju boju,a ne postave se..
Evo slike:
1. http://www.zaslike.com/viewer.php?file=rq44vazvwftwmsxr9cx1.png
2. http://www.zaslike.com/viewer.php?file=1cdk2m1i6xvqxbmmvkrh.png
3. http://www.zaslike.com/viewer.php?file=pazidkbxnqbh8rhoc7a.png
Dio scripte😄acu koji zelite!
Neonke
351
pregleda
5
postova
25. Jul 2013.
26. Jul 2013.
Evo komanda,ali ovo je za dialog:
A evo response:
Ako netko zna nek kaze...
case 0:
{
if(PlayerInfo <= 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SPD(playerid,DIALOG_NEON,DIALOG_STYLE_LIST, ""COL_RED"V"COL_GREEN"I"COL_YELLOW"P"COL_WHITE" | Neonke",""svpl"1 | "COL_BLUE"Plave\n"svpl"2 | "COL_GREEN"Zelene\n"svpl"3 | "COL_YELLOW"Zute\n"svpl"4 | "COL_WHITE"Bele\n"svpl"5 | "COL_PINK"Roze\n"svpl"6 | "COL_WHITE"Obrisi neonke","Ugradi","Otkazi");
} else return SCM(playerid,BELA,"{FF0000}[Greska!]{BFC0C2} Niste vozac");
} else return SCM(playerid,BELA,"{FF0000}[Greska!]{BFC0C2} Niste u vozilu");
} else return SCM(playerid,BELA,"{FF0000}[Greska!]{BFC0C2} Niste aktivirali Neonke");
}
A evo response:
case DIALOG_NEON:
{
if(!response) return 1;
switch(listitem)
{
case 0:
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "blue", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "blue1", CreateObject(18648,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "blue"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SCM(playerid,BELA,"Ugradili ste Plave neonke");
}
case 1:
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "green", CreateObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, "green1", CreateObject(18649,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "green"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "green1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SCM(playerid,BELA,"Ugradili ste Zelene neonke");
}
case 2:
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "yellow", CreateObject(18650,0,0,0,0,0,0));
SetPVarInt(playerid, "yellow1", CreateObject(18650,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "yellow"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "yellow1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SCM(playerid,BELA,"Ugradili ste Zute neonke");
}
case 3:
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "white", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "white1", CreateObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "white"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "white1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SCM(playerid,BELA,"Ugradili ste Bele neonke");
}
case 4:
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "pink", CreateObject(18651,0,0,0,0,0,0));
SetPVarInt(playerid, "pink1", CreateObject(18651,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "pink"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "pink1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SCM(playerid,BELA,"Ugradili ste Roze neonke");
}
case 5:
{
DestroyObject(GetPVarInt(playerid, "blue"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "blue1"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "green"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "green1"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "yellow"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "yellow1"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "white"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "white1"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "pink"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "pink1"));
DeletePVar(playerid, "neon");
SCM(playerid,BELA,"Skinuli ste neonke");
}
}
}
Ako netko zna nek kaze...
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava