[pomoc]vozilo

Započeo Street, Septembar 04, 2011, 21:33:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: noxicus
Detaljan opis problema: Imam komandu /evozilo u dijalogu i kada odabrem vozilo ne spawna ga...
Dio skripte: komada:

CMD:evozilo(playerid, params[])
{

if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
{

ShowPlayerDialog( playerid, 5421, DIALOG_STYLE_LIST, "Odaberi vozilo za igrace na eventu.", "NRG-500\nInfernus\nTurismo\nComet\nSanchez\nFaggio\nPCJ-600\nFCR-900\nQuadBike\nSandKing\nSultan\nSuper GT\nBullet\nZR-350\nCheetah\nBanshee\nFlash\nNema Vozila", "Odaberi", "" );

}
else return SCM(playerid, COLOR_GREY, "Nisi ovlasten!");
return 1;
}


evo i OnDialogResponse
if(dialogid == 5421)
{
if(response)
{
if(listitem == 0)
{
eVozilo = 522;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao NRG-500 kao event vozilo!", sendername);
SendClientMessageToAll( WHITE, string);
SaveEvent();
}
if(listitem == 1)
{
eVozilo = 411;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Infernus kao event vozilo!", sendername);
SendClientMessageToAll( WHITE, string); SaveEvent();

}
if(listitem == 2)
{
eVozilo = 451;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Turismo kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 3)
{
eVozilo = 480;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Comet kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 4)
{
eVozilo = 468;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Sanchez kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 5)
{
eVozilo = 462;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Faggio kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 6)
{
eVozilo = 461;
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao PCJ-600 kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 7)
{
eVozilo = 521;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao FCR-900 kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 8)
{
eVozilo = 471;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao QuadBike kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 9)
{
eVozilo = 495;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao SandKing kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 10)
{
eVozilo = 560;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Sultan kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 11)
{
eVozilo = 506;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Super GT kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 12)
{
eVozilo = 541;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Bullet kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 13)
{
eVozilo = 477;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao ZR-350 kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 14)
{
eVozilo = 415;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Cheetah kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 15)
{
eVozilo = 429;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Banshee kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 16)
{
eVozilo = 565;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao Flash kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
if(listitem == 17)
{
eVozilo = 0;GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFF80}Admin{FF0000} %s {FFFF80}je odabrao [Nema] kao event vozilo!", sendername);
SendClientMessageToAll(WHITE, string);SaveEvent();
}
}
else
{
ShowPlayerDialog( playerid, 5421, DIALOG_STYLE_LIST, "Odaberi vozilo za igrace na eventu.", "NRG-500\nInfernus\nTurismo\nComet\nSanchez\nFaggio\nPCJ-600\nFCR-900\nQuadBike\nSandKing\nSultan\nSuper GT\nBullet\nZR-350\nCheetah\nBanshee\nFlash\nNema Vozila", "Odaberi", "" );
}
}



I kako da napravim da mi spawna vozilo koje odaberem odmah pored mene... i da ih bude 10..
Neke slike/video za lakse dobivanje pomoci(neobavezno):