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...
u mta napravi standove doÄ'i do njih i spremi kordinate i dodaji iz u komandu:
//----------------------------------[hotdog]-----------------------------------------------
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);
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;
}
nisi mu nista objasnio vidis da je noviji
//----------------------------------[hotdog]-----------------------------------------------
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;
}
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...
//----------------------------------[hotdog]-----------------------------------------------
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...
//----------------------------------[sladoled]-----------------------------------------------
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.
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([b]3[/b].0, playerid
Evo ti hotdog ...
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 :D
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);//hotdog
Evo 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);//sladoled
Ali i to nije sve jer mozete kupiti i hambuger :D
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);//hamburger
Evo dao sam ti sve ovo /sladoled /hotdog /hambuger strpas u onplayercommandtext a objekte u ongamemodeinit...
Sve ti namjesteno ... ovo po gradu okolo :D
Citat: Lumpri77 poslato Jun 23, 2010, 19:11:19 POSLE PODNE
u mta napravi standove doÄ'i do njih i spremi kordinate i dodaji iz u komandu:
//----------------------------------[hotdog]-----------------------------------------------
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);
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?
uzmemo XYZ Koridnate
Citat: Kiki_Radeon poslato Jun 24, 2010, 00:39:49 PRE PODNE
Citat: Lumpri77 poslato Jun 23, 2010, 19:11:19 POSLE PODNE
u mta napravi standove doÄ'i do njih i spremi kordinate i dodaji iz u komandu:
//----------------------------------[hotdog]-----------------------------------------------
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);
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
[code=c]
[/code]