ULTIMATE PARK BY N1n0
Kao sto pise u naslovu Ultimate Park, evo malo predstave o njemu:
Ovaj parkic se nalazi u Los Santosu kod Gracke Kuce(vjernice).
Dialog za kupupovanje Piva, Coca Cole, Hot Dog-a i Sladoleda!
Napravio sam neke objecte koji izgledaju veoma lepo!
Uglavnom sve izgleda lepo i slatko! :)
Uzivajte u skripti i uzivajte u koriscenju! ;)
DOWNLOAD:
KLIKNI SVE SNAGE! :D (http://solidfiles.com/d/ee4e/)
SLIKE:
Evo slika, izvinite sto ste cekali:
(http://img6.imageshack.us/img6/5761/gtasa20100921225127.th.jpg) (http://img6.imageshack.us/i/gtasa20100921225127.jpg/)
(http://img832.imageshack.us/img832/9460/gtasa20100921225118.th.jpg) (http://img832.imageshack.us/i/gtasa20100921225118.jpg/)
(http://img84.imageshack.us/img84/3246/gtasa20100921225108.th.jpg) (http://img84.imageshack.us/i/gtasa20100921225108.jpg/)
(http://img690.imageshack.us/img690/7206/gtasa20100921225049.th.jpg) (http://img690.imageshack.us/i/gtasa20100921225049.jpg/)
(http://img819.imageshack.us/img819/1562/gtasa20100921225036.th.jpg) (http://img819.imageshack.us/i/gtasa20100921225036.jpg/)
(http://img97.imageshack.us/img97/451/gtasa20100921225017.th.jpg) (http://img97.imageshack.us/i/gtasa20100921225017.jpg/)
OCEKUJEM KOMENTARE! :)
glavno da imas sobeit xD odliÄno!!!
Citat: Pooh poslato Septembar 22, 2010, 14:09:47 POSLE PODNE
Nije lose, mogao si jos neki stand sa hranom da stavis. 4/5
PS: Pise se gradske a ne gracke.. :)
Ja mislim da je u Srbiji gradcke
Svaka Čast odlićan posao,editat ćuu ;) :P :)
Lijepo uredena mapa i fora FS! ;) Svida mi se 9/10
Super ;)
Hvala svima!!! :)
Sto se tice s0beit-a ja njega koristim za skriptanje i sada mi je pomogao jer Cam Hack nece da radi! ;)
Nisam siguran kako se pise, zasto uopste smarate sa time, nisam napravio ovo i postao da me neko zajebava! >:(
Ja sam ovo radio samo radi podsecivanja, i malo zabave! :)
ima jedan error1 moze neko ga rjesovati
error.koji error?
Citat: StjepanS poslato Oktobar 15, 2010, 21:11:30 POSLE PODNE
Postavi ga ovde kako cemo ti pomoc ako neznamo ni mi staje ???
Pa jel Rascal reka da posta errore jel ti moraš odmah spammat tu??? -.-
Nice, iskoristio sam /meni:)
Super,svidja mi se :) mozda iskoristim
samo tako nastavi
10/10
Super FS neno svaka cast a ti postaj erore koje imas
Imam pitanje kako sad od te trafike da napravim da neko moze da je kupi? I da prihod od kupovine necega sa trafike ide vlasniku u planu mi je da to rasporedim po celom LS! Molim vas ako mi neko moze pomoc? Neki tutorial ili nesto bicu veoma zahvalan! FS je zakon svaka cast 10/10 od mene :)
Super odlican
ovako napravim ja dve trafike iz tvoje FS,ali kad postavi m vise od jedne ne izbaci mi meni za kupiti trafika i ostali objekti budu tu ali ne i meni za kupiti mozete li mi pomoci posto hocu da ove trafike raspodelim po selome LS hvala na pomoci unapred
#include <a_samp>
new pickup;
#define LJUBICASTO 0xC2A2DAAA
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public OnFilterScriptInit()
{
pickup = CreatePickup(1239, 24, 1537.9000244141,-1656,13.5);
CreateObject(1571,1539.50000000,-1655.30004883,13.89999962,0.00000000,0.00000000,286.00000000); //object(cj_noodle_1) (1)
CreateObject(3061,1540.80004883,-1657.00000000,13.89999962,0.00000000,0.00000000,106.00000000); //object(ad_flatdoor) (1)
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xF0F0F0FF, "Great man >>N1n0<< made this FS");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/buy", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(5.0,playerid,1537.9000244141,-1656,13.5))
{
ShowPlayerDialog(playerid,2000,DIALOG_STYLE_LIST,"Izaberi:","Beer (65$)\nCoca Cola (65$)\nHot Dog (70$)\nHamburger (80$)","Izaberi","Zatvori");
}
return 1;
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == pickup)
{
GameTextForPlayer(playerid, "~w~Write ~r~/buy ~w~to buy something!", 3500, 5);
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[128];
new ime[MAX_PLAYER_NAME];
GetPlayerName(playerid, ime, sizeof(ime));
new Float:zivot;
GetPlayerHealth(playerid, zivot);
if(dialogid == 2000)
{
if(response)
{
if(listitem == 0)
{
format(string, sizeof(string), "%s is buyed Beer!", ime);
SendClientMessage(playerid, LJUBICASTO, string);
GivePlayerMoney(playerid,-65);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
}
if(listitem == 1)
{
format(string, sizeof(string), "%s is buyed Coca Cola!", ime);
SendClientMessage(playerid, LJUBICASTO, string);
GivePlayerMoney(playerid,-65);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
}
if(listitem == 2)
{
format(string, sizeof(string), "%s is buyed Hot Dog and eat it!", ime);
SendClientMessage(playerid, LJUBICASTO, string);
GivePlayerMoney(playerid,-70);
SetPlayerHealth(playerid, zivot + 10.0);
}
if(listitem == 3)
{
format(string, sizeof(string), "%s is buyed Hamburger and eat it!", ime);
SendClientMessage(playerid, LJUBICASTO, string);
GivePlayerMoney(playerid,-80);
SetPlayerHealth(playerid, zivot + 15.0);
}
}
return 1;
}
return 0;
}
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
ovo je naprimer druga
#include <a_samp>
new pickup;
#define LJUBICASTO 0xC2A2DAAA
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public OnFilterScriptInit()
{
pickup = CreatePickup(1239, 24, 1465.9000244141,-1043,23.799999237061);
CreateObject(3061,1464.00000000,-1045.69995117,24.20000076,0.00000000,0.00000000,0.00000000); //object(ad_flatdoor) (1)
CreateObject(1571,1466.00000000,-1044.90002441,24.20000076,0.00000000,0.00000000,179.99993896); //object(cj_noodle_1) (1)
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xF0F0F0FF, "Great man >>N1n0<< made this FS");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/buy", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(5.0,playerid,1465.9000244141,-1043,23.799999237061))
{
ShowPlayerDialog(playerid,2000,DIALOG_STYLE_LIST,"Izaberi:","Beer (65$)\nCoca Cola (65$)\nHot Dog (70$)\nHamburger (80$)","Izaberi","Zatvori");
}
return 1;
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == pickup)
{
GameTextForPlayer(playerid, "~w~Write ~r~/buy ~w~to buy something!", 3500, 5);
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[128];
new ime[MAX_PLAYER_NAME];
GetPlayerName(playerid, ime, sizeof(ime));
new Float:zivot;
GetPlayerHealth(playerid, zivot);
if(dialogid == 2000)
{
if(response)
{
if(listitem == 0)
{
format(string, sizeof(string), "%s is buyed Beer!", ime);
SendClientMessage(playerid, LJUBICASTO, string);
GivePlayerMoney(playerid,-65);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
}
if(listitem == 1)
{
format(string, sizeof(string), "%s is buyed Coca Cola!", ime);
SendClientMessage(playerid, LJUBICASTO, string);
GivePlayerMoney(playerid,-65);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
}
if(listitem == 2)
{
format(string, sizeof(string), "%s is buyed Hot Dog and eat it!", ime);
SendClientMessage(playerid, LJUBICASTO, string);
GivePlayerMoney(playerid,-70);
SetPlayerHealth(playerid, zivot + 10.0);
}
if(listitem == 3)
{
format(string, sizeof(string), "%s is buyed Hamburger and eat it!", ime);
SendClientMessage(playerid, LJUBICASTO, string);
GivePlayerMoney(playerid,-80);
SetPlayerHealth(playerid, zivot + 15.0);
}
}
return 1;
}
return 0;
}
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
Molim vas pomagajteeee :D
Dobro je samo tako nastavi 9/10