Quote from June 13, 2013, 7:55 pm:
ok hvala. Moze li mi pomoc neko il mi dat tu komandu za davanje slota?
Neko pomoc?
Naš forum je uspješno migriran na novu platformu. Svi vaši podaci, računi i sadržaj su prebačeni na GTABLKN.
Prevuci gore ili dole za pozicioniranje
Izgleda da [BE:RP]Dzoni trenutno ne radi ništa
}
public IsAtCarrental(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(30.0,playerid,1696.5543,-1053.4685,23.9063)) //4435 linija
{
return 1;
}
}
return 0;
}
public IsAtClothShop(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047)) //4447
{//Binco & Suburban
return 1;
}
else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047)) //4451
{//Zip & Victim
return 1;
}
}
return 0;
}
public IsAtGasStation(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906)) //4463
{//LS
return 1;
}
else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391)) //4467
{//LS
return 1;
}
else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175)) //4471
{//SF
return 1;
}
else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484)) //4475
{//Between LS and SF
return 1;
}
else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968)) //4483
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165)) //4487
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625)) //4487
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,656.4265,-559.8610,16.5015) || PlayerToPoint(6.0,playerid,656.3797,-570.4138,16.5015)) //4491
{//Dillimore
return 1;
}
else if(PlayerToPoint(8.0,playerid,125.2434463501, -1935.9764404297, 2.6310691833496) || PlayerToPoint(8.0,playerid,133.91174316406, -1941.7890625, 2.6310691833496)) //4495
{//Pumpa za Helice
return 1;
}
else if(PlayerToPoint(8.0,playerid,1004.1514892578, -936.96557617188, 47.211837768555)) //4499
{//Pumpa za Helice
return 1;
}
}
return 0;
}
public IsAtFishPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359)) //4511
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359)) //4515
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359)) //4519
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359)) //4523
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359)) //4527
{//Fishplace at the bigwheel
return 1;
}
}
return 0;
}
public IsAtCookPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589)) //4539
{//Cluckin Bell
return 1;
}
else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078)) //4543
{//Burgershot
return 1;
}
else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922)) //4547
{//Well Stacked Pizza
return 1;
}
}
return 0;
}
public IsAtBar(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,1726.4166,-1879.3065,13.5638)) //4559
{//In grove street bar (with girlfriend), and in Havanna
return 1;
}
else if(PlayerToPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || PlayerToPoint(10.0,playerid,-2658.9749,1407.4136,906.2734)) //4563
{//PIG Pen
return 1;
}
else if(PlayerToPoint(4.0,playerid,-791.016,512.249,1336.41) || PlayerToPoint(10.0,playerid,-799.122,520.988,1336.41)) //4567
{//Nortenos House
return 1;
}
else if(PlayerToPoint(4.0,playerid,1955.3664,1018.5177,992.4687)) //4571
{//Kazino BAR
return 1;
}
else if(PlayerToPoint(4.0,playerid,1201.3374,-913.1979,48.5554)) //4575
{//BURG BAR
return 1;
}
else if(PlayerToPoint(4.0,playerid,287.5788,-1850.9073,3.2774))
{//BEACH BAR
return 1;
}
else if(PlayerToPoint(4.0,playerid,-224.7830,1405.0029,27.7734))
{//HITMAN BAZA
return 1;
}
}
return 0;
}
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4435) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4447) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4451) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4463) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4467) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4471) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4475) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4479) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4483) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4487) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4491) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4495) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4499) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4511) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4515) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4519) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4523) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4527) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4539) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4543) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4547) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4559) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4563) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4567) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4571) : error 004: function "PlayerToPoint" is not implemented
A:\BUL PRAVI\gamemodes\bulstaro.pwn(4575) : error 004: function "PlayerToPoint" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
}//TBoxer
format(string, sizeof(string), "* Izgubili ste borbu od %s.", winner);
SendClientMessage(Boxer2, COLOR_WHITE, string);
GameTextForPlayer(Boxer2, "~r~Izgubili ste", 3500, 1);
format(string, sizeof(string), "* Pobjedili ste %s.", loser);
SendClientMessage(Boxer1, COLOR_WHITE, string);
GameTextForPlayer(Boxer1, "~g~You won", 3500, 1);
if(GetPlayerHealth(Boxer1, health) < 20)
{
SendClientMessage(Boxer1, COLOR_WHITE, "* Premoreni ste poslije borbe, idite da nesto pojedete.");
JB_SetPlayerHealth(Boxer1, 30.0);//14621
}
else
{
SendClientMessage(Boxer1, COLOR_WHITE, "* Osjecate se super, cak i poslije borbe.");
JB_SetPlayerHealth(Boxer1, 50.0);//14626
}
}//TBoxer
format(string, sizeof(string), "* Izgubili ste borbu od %s.", winner);
SendClientMessage(Boxer1, COLOR_WHITE, string);
GameTextForPlayer(Boxer1, "~r~Izgubili ste", 3500, 1);
format(string, sizeof(string), "* Pobjedili ste %s.", loser);
SendClientMessage(Boxer2, COLOR_WHITE, string);
GameTextForPlayer(Boxer2, "~r~You won", 3500, 1);
if(GetPlayerHealth(Boxer1, health) < 20)
{
SendClientMessage(Boxer1, COLOR_WHITE, "* Premoreni ste poslije borbe, idite da nesto pojedete.");
JB_SetPlayerHealth(Boxer1, 30.0);//14543
}
else
{
SendClientMessage(Boxer1, COLOR_WHITE, "* Osjecate se super, cak i poslije borbe.");
JB_SetPlayerHealth(Boxer1, 50.0);//14548
}
if(GetPlayerHealth(Boxer2, health) < 20)
{
SendClientMessage(Boxer2, COLOR_WHITE, "* Premoreni ste poslije borbe, idite da nesto pojedete.");
JB_SetPlayerHealth(Boxer2, 30.0);//14553
}
else
{
SendClientMessage(Boxer2, COLOR_WHITE, "* Osjecate se super, cak i poslije borbe.");
JB_SetPlayerHealth(Boxer2, 50.0);//14558
}
GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Match Over", 5000, 1);
if(PlayerInfo == 12) { PlayerInfo += 1; }
PlayerBoxing = 0;
PlayerBoxing = 0;
}
}
else if(house < 99 && house != 10000)
{
SetPlayerPos(i, HouseInfo, HouseInfo,HouseInfo); // Warp the player //13998
PlayerInfo = 255;
SetPlayerInterior(i,0);
PlayerInfo = 0;
}
public CarCheck()
{
new string;
foreach (Player, j)
{
/*SetVehicleParamsForPlayer(99, j, 0, 0);
SetVehicleParamsForPlayer(100, j, 0, 0);
SetVehicleParamsForPlayer(101, j, 0, 0);
SetVehicleParamsForPlayer(102, j, 0, 0);
SetVehicleParamsForPlayer(103, j, 0, 0);
SetVehicleParamsForPlayer(104, j, 0, 0);
SetVehicleParamsForPlayer(105, j, 0, 0);
SetVehicleParamsForPlayer(106, j, 0, 0);
SetVehicleParamsForPlayer(107, j, 0, 0);
SetVehicleParamsForPlayer(108, j, 0, 0);
SetVehicleParamsForPlayer(109, j, 0, 0);*/
new Float:health;
GetPlayerHealth(j, health);
if(STDPlayer==1)
{
GetPlayerHealth(j, health);
JB_SetPlayerHealth(j, health - 5.0);//13417
SendClientMessage(j, COLOR_WHITE, "* Izgubili ste 4 helta zbog STD.");
}
else if(STDPlayer==2)
{
GetPlayerHealth(j, health);
JB_SetPlayerHealth(j, health - 12.0);//13423
SendClientMessage(j, COLOR_WHITE, "* Izgubili ste 8 helta zbog STD.");
}
else if(STDPlayer==3)
{
GetPlayerHealth(j, health);
JB_SetPlayerHealth(j, health - 20.0);//13429
SendClientMessage(j, COLOR_WHITE, "* Izgubili ste 12 helta zbog STD.");
}
if(GetPlayerMoney(j) < 0)
{
if(MoneyMessage==0)
{
format(string, sizeof(string), "U dugovima ste, imate vremena do sledece provjere da skupite: $%d ili idete u zatvor.", GetPlayerMoney(j));
SendClientMessage(j, COLOR_LIGHTRED, string);
MoneyMessage = 1;
}
}
else
{
MoneyMessage = 0;
}
}
for(new c = 1; c < 254; c++)
{
foreach (Player, i)
{
if (PlayerInfo == 5)
{
SetVehicleParamsForPlayer(c, i, 0, 0);
}
}
if (gLastDriver == 330)
{
// CarRespawn(c);
}
if (gLastDriver >= 329)
{
gLastDriver++;
}
//foundowner = -1;
}
return 1;
}
}
if(newstate == PLAYER_STATE_SPAWNED)
{
new Float: lwx, Float:lwy, Float:lwz;
GetPlayerPos(playerid, lwx, lwy, lwz);
if((lwz > 530.0 && PlayerInfo == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8
{
SetPlayerSpawn(playerid);
}
if(WantedPoints > 0)
{
new dstring;
new wanted = WantedPoints;
new diecash = 0;
while(WantedPoints > 0)
{
diecash += 500;
WantedPoints --;
}
format(dstring, sizeof(dstring), "Izgubili ste $%d zbog umiranja sa %d Wanted Poena/om.", diecash, wanted);
SendClientMessage(playerid, COLOR_YELLOW, dstring);
GivePlayerCash(playerid, - diecash);
PlayerInfo += 1;
}
if(PlayerOnMission > 0)
{
GameTextForPlayer(playerid, "~r~Misija je izgubljena", 5000, 3);
PlayerOnMission = 0;
PlayerInfo = 0;
}
WantedPoints = 0;
WantedLevel = 0;
if(PlayerInfo > 0) { JB_SetPlayerHealth(playerid, 100.0); }//13039
else { JB_SetPlayerHealth(playerid, 50.0+PlayerInfo); }//13040
MedicBill = 1;
TelePos = 0.0;
TelePos = 0.0;
gPlayerSpawned = 1;
SafeTime = 60;
}
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:Current = GetPlayerMenu(playerid);
if(Current == burgermenu || Current == chickenmenu || Current == pizzamenu || Current == donutshop)
{
TogglePlayerControllable(playerid, 1);
if (row != 10) // 10 = Leave
{
if (GetPlayerMoney(playerid) <= 0)
{
GameTextForPlayer(playerid, "~r~Nedovoljno novca", 5000, 1);
return 1;
}
new actstring;
new sendername;
new Float:health;
new location = PlayerInfo;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerHealth(playerid, health);
if (row == 7 || row == 8) // Drink
{
format(actstring, sizeof(actstring), "* %s pije iz svoje case.", sendername);
GivePlayerCash(playerid, -1);
JB_SetPlayerHealth(playerid, health + 10);//11998
ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
}
else // Meal
{
switch (row)
{
case 1:
{
if(Current == donutshop) format(actstring, sizeof(actstring), "* %s jede malu krofnu.", sendername);
else format(actstring, sizeof(actstring), "* %s jede malu krofnu.", sendername);
GivePlayerCash(playerid, -2);
JB_SetPlayerHealth(playerid, health + 10);//12010
BizzInfo[location-99] += 2;
ExtortionBiz(location-99, 2);
BizzInfo[location-99]--;
}
case 2:
{
if (Current == chickenmenu) format(actstring, sizeof(actstring), "* %s jede sendvich.", sendername);
else if (Current == pizzamenu) format(actstring, sizeof(actstring), "* %s jede malu picu.", sendername);
else if (Current == donutshop) format(actstring, sizeof(actstring), "* %s jede srednju krofnu.", sendername);
else format(actstring, sizeof(actstring), "* %s jede cheeseburger.", sendername);
GivePlayerCash(playerid, -4);
JB_SetPlayerHealth(playerid, health + 20);//12022
BizzInfo[location-99] += 4;
ExtortionBiz(location-99, 4);
BizzInfo[location-99]--;
}
case 3:
{
if (Current == pizzamenu) format(actstring, sizeof(actstring), "* %s jede veliku picu.", sendername);
else if (Current == donutshop) format(actstring, sizeof(actstring), "* %s jede veliku krofnu.", sendername);
else format(actstring, sizeof(actstring), "* %s jede topli sendvich.", sendername);
GivePlayerCash(playerid, -5);
JB_SetPlayerHealth(playerid, health + 30);//12033
BizzInfo[location-99] += 5;
ExtortionBiz(location-99, 5);
BizzInfo[location-99]--;
}
case 4:
{
if (Current == donutshop) format(actstring, sizeof(actstring), "* %s jede porciju krofni.", sendername);
else format(actstring, sizeof(actstring), "* %s jede salatu.", sendername);
GivePlayerCash(playerid, -3);
JB_SetPlayerHealth(playerid, health + 15);//12043
BizzInfo[location-99] += 3;
ExtortionBiz(location-99, 3);
BizzInfo[location-99]--;
}
}
if (Current == burgermenu) ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
else if (Current == chickenmenu) ApplyAnimation(playerid,"FOOD","EAT_Chicken",4.1,0,1,1,0,1);
else if (Current == pizzamenu) ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,0,1);
else if (Current == donutshop) ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,0,1);
if (GetPlayerMoney(playerid) > 100) JB_SetPlayerHealth(playerid, 100);//12053
OnPropUpdate();
}
ProxDetector(30.0, playerid, actstring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
Nivo 4
8 / 20 otključano