Započeo Ante_Dracar aka Lopa
•23. Jun 2010./jedi
1,790
pregleda
9
postova
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
265
Postovi:
106
Teme:
Pridružio se:Apr. 2010
23. Jun 2010.
moze li pomoc oko /jedi,ako ima neko tut kako da po cjelom gradu di stavim standove za hotdog moze jesti...
ali samo ako si pokraj standa da mos jest...
hvala unaprjed...
ali samo ako si pokraj standa da mos jest...
hvala unaprjed...
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
287
Postovi:
64
Teme:
Pridružio se:Dec. 2009
23. Jun 2010.
u mta napravi standove dođi do njih i spremi kordinate i dodaji iz u komandu:
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/hotdog", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 1456.864624, -1747.103760, 13.674461) || PlayerToPoint(3.0, playerid, 1215.593750, -1819.639282, 13.723969) || PlayerToPoint(3.0, playerid, 471.380615, -1323.026245, 15.60485😎 || PlayerToPoint(3.0, playerid, 1972.451904, -2174.688477, 13.668180)) // ovo kordinate zamjeni sa svojima
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 100);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+25);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa hotdogovima !");
return 1;
}
}
return 1;
}
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/hotdog", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 1456.864624, -1747.103760, 13.674461) || PlayerToPoint(3.0, playerid, 1215.593750, -1819.639282, 13.723969) || PlayerToPoint(3.0, playerid, 471.380615, -1323.026245, 15.60485😎 || PlayerToPoint(3.0, playerid, 1972.451904, -2174.688477, 13.668180)) // ovo kordinate zamjeni sa svojima
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 100);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+25);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa hotdogovima !");
return 1;
}
}
return 1;
}
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
448
Postovi:
59
Teme:
Pridružio se:Okt. 2009
23. Jun 2010.
nisi mu nista objasnio vidis da je noviji
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/hotdog", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 1456.864624, -1747.103760, 13.674461) || PlayerToPoint(3.0, playerid, 1215.593750, -1819.639282, 13.723969) || PlayerToPoint(3.0, playerid, 471.380615, -1323.026245, 15.604858) || PlayerToPoint(3.0, playerid, 1972.451904, -2174.688477, 13.668180)) // ovo kordinate zamjeni sa svojima
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 100); //mozes promjenit u GivePlayerHealth(playeridm ...);//stavis koliko da mu doda helta a ovo SetPlayerHealth(playerid, 100) je damu odma postavi healt na 100
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15); //koliko da mu se oduzme para
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+25); //koliko da kupac dobije helta
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa hotdogovima !");
return 1;
}
}
return 1;
} Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
265
Postovi:
106
Teme:
Pridružio se:Apr. 2010
23. Jun 2010.
ljudi sje je dobro bilo dok sam ostavio na 4 standa za jest,ali sada kada sam povecao na 6 pojavljuju mi se orrori...
ovako je bilo sve u redu...
a ovako kada sampovecao sa 4 na 6 standova izbaciva mi erroer...
evo errori...
ovako je bilo sve u redu...
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/hotdog", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 1456.864624, -1747.103760, 13.674461) || PlayerToPoint(3.0, playerid, 1215.593750, -1819.639282, 13.723969) || PlayerToPoint(3.0, playerid, 471.380615, -1323.026245, 15.604858) || PlayerToPoint(3.0, playerid, 1972.451904, -2174.688477, 13.668180)) // ovo kordinate zamjeni sa svojima
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 100); //mozes promjenit u GivePlayerHealth(playeridm ...);//stavis koliko da mu doda helta a ovo SetPlayerHealth(playerid, 100) je damu odma postavi healt na 100
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15); //koliko da mu se oduzme para
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+25); //koliko da kupac dobije helta
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa hotdogovima !");
return 1;
}
}
return 1;
} a ovako kada sampovecao sa 4 na 6 standova izbaciva mi erroer...
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/sladoled", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, -2014.7376708984, -99.900939941406, 35.462921142578) || PlayerToPoint(3.0, playerid, -2427.9309082031, -25.268508911133, 35.322898864746) || PlayerToPoint(3.0, playerid, -2245.3815917969, 228.33242797852, 35.322898864746) || PlayerToPoint(3.0, playerid, -2378.0417480469, 696.97875976563, 35.174461364746) || PlayerToPoint(3.0, playerid, -2679.470703125, 1297.2598876953, 7.1900863647461) || PlayerToPoint(3.0, playerid, -2836.4235839844, 472.03872680664, 4.426646232605))
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i lize sladoled.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 15);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i lize sladoled.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+15);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa sladoledima !");
return 1;
}
}
return 1;
}
evo errori...
C:\Users\Bill Gates\Desktop\SAMP\lopin serevr\gamemodes\Balkan City(10899) : error 075: input line too long (after substitutions)
C:\Users\Bill Gates\Desktop\SAMP\lopin serevr\gamemodes\Balkan City.pwn(10901) : error 001: expected token: ",", but found "-integer value-"
C:\Users\Bill Gates\Desktop\SAMP\lopin serevr\gamemodes\Balkan City(10901) : warning 215: expression has no effect
C:\Users\Bill Gates\Desktop\SAMP\lopin serevr\gamemodes\Balkan City(10901) : error 001: expected token: ";", but found ")"
C:\Users\Bill Gates\Desktop\SAMP\lopin serevr\gamemodes\Balkan City(10901) : warning 217: loose indentation
C:\Users\Bill Gates\Desktop\SAMP\lopin serevr\gamemodes\Balkan City(10901) : error 029: invalid expression, assumed zero
C:\Users\Bill Gates\Desktop\SAMP\lopin serevr\gamemodes\Balkan City(10901) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
448
Postovi:
59
Teme:
Pridružio se:Okt. 2009
23. Jun 2010.
mislim da sam i ja ima sranja sa time nisam siguran sta se mora nemogu se sjetit ali mislim da ovo moras povecat nezz :S
if(PlayerToPoint(3.0, playeridMade Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
446
Postovi:
41
Teme:
Pridružio se:Maj 2009
23. Jun 2010.
Evo ti hotdog ...
Sve radi namjestene kordinate 😄
Evo ak os koristit ... a eto i za stand sladoleda....
Ali i to nije sve jer mozete kupiti i hambuger 😄
Evo dao sam ti sve ovo /sladoled /hotdog /hambuger strpas u onplayercommandtext a objekte u ongamemodeinit...
Sve ti namjesteno ... ovo po gradu okolo 😄
if(strcmp(cmd, "/hotdog", true) == 0)
{
if (PlayerToPoint(3, playerid,1222.723022, -954.586060, 43.065086))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+15);
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hotdog i platio 25$!");
}
else if (PlayerToPoint(3, playerid,1141.097656, -1156.750732, 23.955711))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+15);
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hotdog i platio 25$!");
}
else if (PlayerToPoint(3, playerid,1665.414429, -1511.441162, 13.674461))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+15);
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hotdog i platio 25$!");
}
else if (PlayerToPoint(3, playerid,1316.939331, -1413.223511, 13.636442))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+15);
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hotdog i platio 25$!");
}
else if (PlayerToPoint(3, playerid,1189.166382, -1556.010864, 13.674461))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+15);
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hotdog i platio 25$!");
}
else
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Nisi na Hotdog standu!");
}
}Sve radi namjestene kordinate 😄
CreateObject(1340, 1222.723022, -954.586060, 43.065086, 0.0000, 0.0000, 101.2500);//hotdog
CreateObject(1340, 1141.097656, -1156.750732, 23.955711, 0.0000, 0.0000, 90.0000);//hotdog
CreateObject(1340, 1316.939331, -1413.223511, 13.636442, 0.0000, 0.0000, 90.0000);//hotdog
CreateObject(1340, 1189.166382, -1556.010864, 13.674461, 0.0000, 0.0000, 0.0000);//hotdog
CreateObject(1340, 1665.414429, -1511.441162, 13.674461, 0.0000, 0.0000, 180.0000);//hotdogEvo ak os koristit ... a eto i za stand sladoleda....
if(strcmp(cmd, "/sladoled", true) == 0)
{
if (PlayerToPoint(3, playerid,1510.227295, -874.500061, 62.021393))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede sladoled.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+10);
GivePlayerMoney(playerid, -15);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si sladoled i platio 15$!");
}
else if (PlayerToPoint(3, playerid,1438.909302, -1044.786987, 23.830711))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede sladoled.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+10);
GivePlayerMoney(playerid, -15);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si sladoled i platio 15$!");
}
else if (PlayerToPoint(3, playerid,1336.111084, -1261.506592, 13.549461))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede sladoled.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+10);
GivePlayerMoney(playerid, -15);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si sladoled i platio 15$!");
}
else if (PlayerToPoint(3, playerid,1280.902710, -1704.045654, 13.549461))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede sladoled.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+10);
GivePlayerMoney(playerid, -15);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si sladoled i platio 15$!");
}
else if (PlayerToPoint(3, playerid,1560.513916, -1777.846680, 13.549461))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede sladoled.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+10);
GivePlayerMoney(playerid, -15);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si sladoled i platio 15$!");
}
else
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Nisi na standu za sladoled!");
}
}
CreateObject(1341, 1510.227295, -874.500061, 62.021393, 351.4056, 358.2811, 147.9689);//sladoled
CreateObject(1341, 1438.909302, -1044.786987, 23.830711, 0.0000, 0.0000, 90.0000);//sladoled
CreateObject(1341, 1336.111084, -1261.506592, 13.549461, 0.0000, 0.0000, 0.0000);//sladoled
CreateObject(1341, 1280.902710, -1704.045654, 13.549461, 0.0000, 0.0000, 270.0000);//sladoled
CreateObject(1341, 1560.513916, -1777.846680, 13.549461, 0.0000, 0.0000, 0.0000);//sladoledAli i to nije sve jer mozete kupiti i hambuger 😄
if(strcmp(cmd, "/hamburger", true) == 0)
{
if (PlayerToPoint(3, playerid,1429.740723, -1533.085205, 13.582136))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hamburger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+35);
GivePlayerMoney(playerid, -20);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hamburger i platio 20$!");
}
else if (PlayerToPoint(3, playerid,905.900757, -992.812744, 37.676868))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hamburger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+35);
GivePlayerMoney(playerid, -20);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hamburger i platio 20$!");
}
else if (PlayerToPoint(3, playerid,858.965393, -1134.245117, 23.861818))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hamburger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+35);
GivePlayerMoney(playerid, -20);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hamburger i platio 20$!");
}
else if (PlayerToPoint(3, playerid,2182.374023, -1308.279785, 24.018068))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hamburger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+35);
GivePlayerMoney(playerid, -20);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hamburger i platio 20$!");
}
else if (PlayerToPoint(3, playerid,2355.163574, -1666.909790, 13.580568))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede hamburger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid, health+35);
GivePlayerMoney(playerid, -20);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Kupio si hamburger i platio 20$!");
}
else
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Nisi na standu za hamburger!");
}
}
CreateObject(1342, 1429.740723, -1533.085205, 13.582136, 0.0000, 0.0000, 348.7500);//hamburger
CreateObject(1342, 905.900757, -992.812744, 37.676868, 0.0000, 0.0000, 101.2500);//hamburger
CreateObject(1342, 858.965393, -1134.245117, 23.861818, 0.0000, 0.0000, 270.0000);//hamburger
CreateObject(1342, 2182.374023, -1308.279785, 24.018068, 0.0000, 0.0000, 90.0000);//hamburger
CreateObject(1342, 2355.163574, -1666.909790, 13.580568, 0.0000, 0.0000, 90.0000);//hamburgerEvo dao sam ti sve ovo /sladoled /hotdog /hambuger strpas u onplayercommandtext a objekte u ongamemodeinit...
Sve ti namjesteno ... ovo po gradu okolo 😄
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
245
Postovi:
46
Teme:
Pridružio se:Jan. 2010
23. Jun 2010.
Lumpri77 wrote on June 23, 2010, 5:11 pm:
u mta napravi standove dođi do njih i spremi kordinate i dodaji iz u komandu:
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/hotdog", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 1456.864624, -1747.103760, 13.674461) || PlayerToPoint(3.0, playerid, 1215.593750, -1819.639282, 13.723969) || PlayerToPoint(3.0, playerid, 471.380615, -1323.026245, 15.60485😎 || PlayerToPoint(3.0, playerid, 1972.451904, -2174.688477, 13.668180)) // ovo kordinate zamjeni sa svojima
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 100);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+25);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa hotdogovima !");
return 1;
}
}
return 1;
}
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/hotdog", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 1456.864624, -1747.103760, 13.674461) || PlayerToPoint(3.0, playerid, 1215.593750, -1819.639282, 13.723969) || PlayerToPoint(3.0, playerid, 471.380615, -1323.026245, 15.60485😎 || PlayerToPoint(3.0, playerid, 1972.451904, -2174.688477, 13.668180)) // ovo kordinate zamjeni sa svojima
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 100);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+25);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa hotdogovima !");
return 1;
}
}
return 1;
}
ma kak napravite takav kodD?
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
448
Postovi:
59
Teme:
Pridružio se:Okt. 2009
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
489
Postovi:
106
Teme:
Pridružio se:Sep. 2009
24. Jun 2010.
Kiki_Radeon wrote on June 23, 2010, 5:11 pm:
u mta napravi standove dođi do njih i spremi kordinate i dodaji iz u komandu:
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/hotdog", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 1456.864624, -1747.103760, 13.674461) || PlayerToPoint(3.0, playerid, 1215.593750, -1819.639282, 13.723969) || PlayerToPoint(3.0, playerid, 471.380615, -1323.026245, 15.60485😎 || PlayerToPoint(3.0, playerid, 1972.451904, -2174.688477, 13.668180)) // ovo kordinate zamjeni sa svojima
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 100);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+25);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa hotdogovima !");
return 1;
}
}
return 1;
}
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/hotdog", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 1456.864624, -1747.103760, 13.674461) || PlayerToPoint(3.0, playerid, 1215.593750, -1819.639282, 13.723969) || PlayerToPoint(3.0, playerid, 471.380615, -1323.026245, 15.60485😎 || PlayerToPoint(3.0, playerid, 1972.451904, -2174.688477, 13.668180)) // ovo kordinate zamjeni sa svojima
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health >= 75)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth(playerid, 100);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
GivePlayerMoney(playerid, -15);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s kupuje i jede hotdog.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerHealth (playerid, health+25);
ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1," Niste pokraj štanda sa hotdogovima !");
return 1;
}
}
return 1;
}
ma kak napravite takav kodD?
blablabalbala
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava