[REP+] If anyone help me to fix DealerShip problem. -
pawn Код:
dcmd_buycar(playerid,params[])
{
if(IsShoping[playerid] == 0)
{
if(GetPlayerState(playerid) != 2)
{
if(IsPlayerInRangeOfPoint(playerid,7.00,564.0015,-1283.4336,17.2559))
{
#pragma unused params
TogglePlayerControllable(playerid, 0);
new string[128];
IsShoping[playerid] = 1;
SCM(playerid, aboja, " Use the left and right to change the bike!");
SCM(playerid, aboja, " To buy click on (F)");
SCM(playerid, aboja, " To quit from bike choose CTRL");
SVozilaTextDraw(playerid);
format(string,sizeof(string),"~w~%s~n~~n~~h~~h~~b~Cijena: %d~n~~n~~h~~h~~y~< ~g~next ~h~~h~~y~>",VehNames[vCars[ShopVeh1[1]][0] -400],vCars[ShopVeh1[1]][1]);
TextDrawSetString(CarShopTextDraw[playerid],string);
}else{SCM(playerid, aboja, " Nisi u salonu!");}
}else{SCM(playerid, aboja, " Nemozes kupovati iz vozila!");}
}else{SCM(playerid, aboja, " Vec listas katalog!");}
return 1;
}
dcmd_buybike(playerid,params[])
{
if(IsShoping[playerid] == 0)
{
if(GetPlayerState(playerid) != 2)
{
if(IsPlayerInRangeOfPoint(playerid,7.00,1298.7928,-1870.8855,13.5469))
{
#pragma unused params
new string[128];
TogglePlayerControllable(playerid, 0);
IsShoping[playerid] = 2;
SCM(playerid, aboja, " Use the left and right to change the bike!");
SCM(playerid, aboja, " To buy click on (F)");
SCM(playerid, aboja, " To quit from bike choose CTRL");
SVozilaTextDraw(playerid);
format(string,sizeof(string),"~w~%s~n~~n~~h~~h~~b~Cijena: %d~n~~n~~h~~h~~y~< ~g~next ~h~~h~~y~>",VehNames[vBikes[ShopVeh2[1]][0] -400],vBikes[ShopVeh2[1]][1]);
TextDrawSetString(CarShopTextDraw[playerid],string);
}else{SCM(playerid, aboja, " Nisi u salonu!");}
}else{SCM(playerid, aboja, " Nemozes kupovati iz vozila!");}
}else{SCM(playerid, aboja, " Vec listas katalog!");}
return 1;
}