Detaljan opis problema: Ovako ja zelim da promjenim mjesto Pickup-a na drugo mjesto tj gdje se /arresta meni se prebaci ono da se moze hapsiti ali pickupa nema odem u garazu ni dole ga nema
Evo malo bolje da vam objasnim ovako stoji code u skripti
AddStaticPickup(1314, 1, 1528.779,-1678.113,5.890625); //Arrest Place LS ja sam isao /save da uzmem kordinate i dobio sam ovo AddPlayerClass(271,1535.9023,-1672.6844,13.3828,93.5026,0,0,0,0,0,0); // Arreste vi mi recite kako to da stavim a nasao sam jos jednu stvar za arreste:
Dio Skripte:
if(strcmp(cmd, "/arrest", true) == 0 || strcmp(cmd, "/uhapsi", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam == 2 || IsACop(playerid))
{
if(OnDuty != 1 && PlayerInfo == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Niste na duznosti!");
return 1;
}
/*if(!PlayerToPoint(6.0, playerid, 268.3327,77.8972,1001.0391) || !PlayerToPoint(15.0, playerid,1537.2515,-1674.9572,13.3828))
{// Jail spot
SendClientMessage(playerid, COLOR_GREY, " You are not near the Jail, can't Arrest!");
return 1;
}*/
if(PlayerToPoint(6.0, playerid, 268.3327,77.8972,1001.0391) || PlayerToPoint(15.0, playerid,1537.2515,-1674.9572,13.3828) || PlayerToPoint(6.0, playerid, 1528.9080,-1678.0759,5.8906) || PlayerToPoint(6.0, playerid, -1606.9096,677.2825,-5.2421))
{//New arrest system
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 99999) { SendClientMessage(playerid, COLOR_GREY, " Novcana kazna ne moze biti ispod $1 ni iznad $99999!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new time = strval(tmp);
if(time < 1 || time > 60) { SendClientMessage(playerid, COLOR_GREY, " Zatvorska kazna ne moze biti ispod 1 ni iznad 20 minuta!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new bail = strval(tmp);
if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, " Da se dozvoli ili ponisti kaucija, kucajte 0 ili 1!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new bailprice = strval(tmp);
if(bailprice < 0 || bailprice > 3000000) { SendClientMessage(playerid, COLOR_GREY, " Kaucija ne moze biti ispod $0 ni iznad $3000000!"); return 1; }
new suspect = GetClosestPlayer(playerid);
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Igrac mora imati barem Wanted Level 1!");
return 1;Slike/Video:/

