Problema risolto Come spostare centro targhe?

anonimo10

Utente Senior
Autore del topic
6 Aprile 2012
1.608
59
Miglior risposta
0
@Ardaenus

Salve a tutti uso un ArizonaCity Roleplay , non è delle migliori lo sò!
Vorrei chiedervi una cosa, come sposto il centro targhe?

Grazie.
 
Ti do un consiglio, cambia il sistema veicoli dell'arizona;
è tutto buggato, comunque se vuoi contattami su skype che ti aiuto a cambiare le coordinate oppure dammele qui e ti do lo script aggiornato.
 
Il Sistema veicoli poi ci penso io ,

Mi Servirebbe solo cambiare le coordinate del centro targhe. è un arizonacity roleplay

@Fully_DJ
 
In verità non sò neanche come trovarli cioè se io vado al centro targhe di SF (San fierro) vedo il pickup e il garage lì e li fa targare,

poi vado a cercare nella gm ma non li trovo ..

è come un ArizonaCity ma è tutta sbuggata , anche il sistema veicoli , lo ho testato. @Fully_DJ
 
Ti do il codice da cercare per trovare il centro targhe.

case 2://Targa
{
if(GetPlayerCash(playerid) > 260)
{
if (PlayerToPoint(5.0, playerid,-1977.1687,874.4636,45.2955))
{
if(carid == PlayerInfo[playerid][pPcarkey] || carid == PlayerInfo[playerid][pPcarkey2] || carid == PlayerInfo[playerid][pPcarkey3] || carid == PlayerInfo[playerid][pPcarkey4] || carid == PlayerInfo[playerid][pPcarkey5] || carid == PlayerInfo[playerid][pPcarkey6] || carid == PlayerInfo[playerid][pPcarkey7] || carid == PlayerInfo[playerid][pPcarkey8] || carid == PlayerInfo[playerid][pPcarkey9] || carid == PlayerInfo[playerid][pPcarkey10])
{
if(IsPlayerInAnyVehicle(playerid))
{
new plate[126];
new randplate = random(999);
format(plate, sizeof(plate), "SF %d %d", randplate,GetPlayerVehicleID(playerid));
strmid(CarInfo[carid][cTarga],plate, 0, strlen(plate), 999);
OnPropUpdate();
SetVehicleNumberPlate(carid,CarInfo[carid][cTarga]);
GivePlayerCash(playerid,-260);
GameTextForPlayer(playerid, "~p~]~y~]~w~Congratulazioni~y~]~p~]~n~~p~Targa Comprata!", 5000, 3);
SetVehicleToRespawn(carid);
SetVehiclePos(carid, -1974.2526,898.3282,44.9302);
SetVehicleZAngle(carid, 90.1663);
PutPlayerInVehicle(playerid,carid,0);

}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW, "[ERRORE:] Devi essere dentro l'auto per usare questo comando");
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW, "[ERRORE:]Non puoi cambiare la targa a un auto che nn è tua");
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW, "[ERRORE:]Non sei al garage delle targhe");
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW, "[ERRORE:]Non hai abbastanza soldi (260$)");
}
}

- - - Aggiornato - - -

Ti serve anche del PickUp?
 
Il garage è un MAP.
MAP:
//TARGHE BY YAMMY
CreateDynamicObject(2604,253.50000000,62.79999924,1003.40002441,0.00000000,0.00000000,178.75000000); //object(cj_police_counter) (1)
CreateDynamicObject(2606,251.19999695,67.59999847,1005.70001221,0.00000000,0.00000000,88.75000000); //object(cj_police_counter2) (2)
CreateDynamicObject(1649,250.69999695,66.90000153,1004.29998779,0.00000000,0.00000000,269.75000000); //object(wglasssmash) (1)
CreateDynamicObject(1649,250.60000610,69.50000000,1003.79998779,0.00000000,0.00000000,270.24499512); //object(wglasssmash) (2)
CreateDynamicObject(11480,-1978.09997559,872.50000000,46.40000153,0.00000000,0.00000000,90.00000000); //object(des_nwt_carport) (1)
CreateDynamicObject(970,-1989.90002441,878.00000000,44.79999924,0.00000000,0.00000000,286.00000000); //object(fencesmallb) (1)
CreateDynamicObject(970,-1988.80004883,874.09997559,44.79999924,0.00000000,0.00000000,285.99609375); //object(fencesmallb) (2)
CreateDynamicObject(970,-1986.59997559,870.79998779,44.79999924,0.00000000,0.00000000,319.99609375); //object(fencesmallb) (3)
CreateDynamicObject(970,-1983.00000000,869.09997559,44.79999924,0.00000000,0.00000000,349.99328613); //object(fencesmallb) (4)
CreateDynamicObject(970,-1985.90002441,885.40002441,44.79999924,0.00000000,0.00000000,285.99609375); //object(fencesmallb) (6)
CreateDynamicObject(970,-1984.69995117,881.40002441,44.79999924,0.00000000,0.00000000,287.24609375); //object(fencesmallb) (8)
CreateDynamicObject(970,-1982.80004883,877.79998779,44.79999924,0.00000000,0.00000000,305.99609375); //object(fencesmallb) (9)
CreateDynamicObject(5020,-1975.09997559,872.09997559,45.09999847,0.00000000,0.00000000,0.00000000); //object(mul_las) (1)
CreateDynamicObject(5020,-1975.00000000,873.00000000,45.09999847,0.00000000,0.00000000,0.00000000); //object(mul_las) (2)
CreateDynamicObject(9361,-1986.19995117,890.70001221,46.59999847,0.00000000,0.00000000,315.75000000); //object(boatoffice_sfn) (1)
CreateDynamicObject(2604,-1988.40002441,893.20001221,45.20000076,0.00000000,0.00000000,0.00000000); //object(cj_police_counter) (2)
CreateDynamicObject(1963,-1985.90002441,891.59997559,44.79999924,0.00000000,0.00000000,90.75000000); //object(est_desk) (1)
CreateDynamicObject(1663,-1987.00000000,891.40002441,44.90000153,0.00000000,0.00000000,88.00000000); //object(swivelchair_b) (1)
CreateDynamicObject(1663,-1989.09997559,892.59997559,44.70000076,0.00000000,0.00000000,178.00000000); //object(swivelchair_b) (2)
CreateDynamicObject(1712,-1982.80004883,893.59997559,44.20000076,0.00000000,0.00000000,270.00000000); //object(kb_couch05) (1)
CreateDynamicObject(1712,-1982.90002441,891.09997559,44.20000076,0.00000000,0.00000000,270.00000000); //object(kb_couch05) (2)
CreateDynamicObject(660,-1989.09997559,872.79998779,44.20000076,0.00000000,0.00000000,0.00000000); //object(pinetree03) (1)
CreateDynamicObject(660,-1987.59997559,870.90002441,44.20000076,0.00000000,0.00000000,0.00000000); //object(pinetree03) (2)
CreateDynamicObject(660,-1985.50000000,869.40002441,44.20000076,0.00000000,0.00000000,0.00000000); //object(pinetree03) (3)
CreateDynamicObject(660,-1983.00000000,868.59997559,44.20000076,0.00000000,0.00000000,0.00000000); //object(pinetree03) (4)
CreateDynamicObject(660,-1981.69995117,878.09997559,44.20000076,0.00000000,0.00000000,0.00000000); //object(pinetree03) (5)
CreateDynamicObject(660,-1983.50000000,880.70001221,44.20000076,0.00000000,0.00000000,0.00000000); //object(pinetree03) (6)
CreateDynamicObject(660,-1984.50000000,883.20001221,44.20000076,0.00000000,0.00000000,0.00000000); //object(pinetree03) (7)
CreateDynamicObject(660,-1985.19995117,885.90002441,44.20000076,0.00000000,0.00000000,0.00000000); //object(pinetree03) (8)
CreateDynamicObject(3785,-1985.69995117,888.90002441,46.79999924,0.00000000,0.00000000,272.75000000); //object(bulkheadlight) (1)
CreateDynamicObject(1893,-1990.19995117,891.40002441,48.09999847,0.00000000,0.00000000,0.00000000); //object(shoplight1)

- - - Aggiornato - - -

Ora apro in locale per prendermi le coordinate Pickup così lo trovo ;)
 
Quello che mi hai risposto prima e non il map.
Quale coordinate devo modificare?
-1974.2526,898.3282,44.9302
977.1687,874.4636,45.2955

Ste due?
@Fully_DJ

- - - Aggiornato - - -
@Fully_DJ
Modificate con le prime 6 coordinate escludendo la prima e mi da errori.

Allo script //targa lì.
 
@Fully_DJ
Ho Fatto /save , la prima coordinata ad esempio 260 , -1700

sono partito da -1700 e devono essere in tutto 6 cifre partendo appunto da -1700
ho messo a compilare e dava 3 errori ,

avevo sostituito

if (PlayerToPoint(5.0, playerid,-1977.1687,874.4636,45.2955))
{
if(carid == PlayerInfo[playerid][pPcarkey] || carid == PlayerInfo[playerid][pPcarkey2] || carid == PlayerInfo[playerid][pPcarkey3] || carid == PlayerInfo[playerid][pPcarkey4] || carid == PlayerInfo[playerid][pPcarkey5] || carid == PlayerInfo[playerid][pPcarkey6] || carid == PlayerInfo[playerid][pPcarkey7] || carid == PlayerInfo[playerid][pPcarkey8] || carid == PlayerInfo[playerid][pPcarkey9] || carid == PlayerInfo[playerid][pPcarkey10])
{
if(IsPlayerInAnyVehicle(playerid))
{
new plate[126];
new randplate = random(999);
format(plate, sizeof(plate), "SF %d %d", randplate,GetPlayerVehicleID(playerid));
strmid(CarInfo[carid][cTarga],plate, 0, strlen(plate), 999);
OnPropUpdate();
SetVehicleNumberPlate(carid,CarInfo[carid][cTarga]);
GivePlayerCash(playerid,-260);
GameTextForPlayer(playerid, "~p~]~y~]~w~Congratulazioni~y~]~p~]~n~~p~Targa Comprata!", 5000, 3);
SetVehicleToRespawn(carid);
SetVehiclePos(carid, -1974.2526,898.3282,44.9302);
SetVehicleZAngle(carid, 90.1663);
PutPlayerInVehicle(playerid,carid,0);


Quelle 2 coordinate lì per far targare il veicolo ma da errori e non compila.
 
MIE CORDINATE DOVE SOSTITUIRE AddPlayerClass(217,-110.4262,1131.1553,19.7422,0.0000,0,0,0,0,0,0); //

In queste coordinate bisogna cambiare.

if (PlayerToPoint(5.0, playerid,-1977.1687,874.4636,45.2955))
{
if(carid == PlayerInfo[playerid][pPcarkey] || carid == PlayerInfo[playerid][pPcarkey2] || carid == PlayerInfo[playerid][pPcarkey3] || carid == PlayerInfo[playerid][pPcarkey4] || carid == PlayerInfo[playerid][pPcarkey5] || carid == PlayerInfo[playerid][pPcarkey6] || carid == PlayerInfo[playerid][pPcarkey7] || carid == PlayerInfo[playerid][pPcarkey8] || carid == PlayerInfo[playerid][pPcarkey9] || carid == PlayerInfo[playerid][pPcarkey10])
{
if(IsPlayerInAnyVehicle(playerid))
{
new plate[126];
new randplate = random(999);
format(plate, sizeof(plate), "SF %d %d", randplate,GetPlayerVehicleID(playerid));
strmid(CarInfo[carid][cTarga],plate, 0, strlen(plate), 999);
OnPropUpdate();
SetVehicleNumberPlate(carid,CarInfo[carid][cTarga]);
GivePlayerCash(playerid,-260);
GameTextForPlayer(playerid, "~p~]~y~]~w~Congratulazioni~y~]~p~]~n~~p~Targa Comprata!", 5000, 3);
SetVehicleToRespawn(carid);
SetVehiclePos(carid, -1974.2526,898.3282,44.9302);
SetVehicleZAngle(carid, 90.1663);
PutPlayerInVehicle(playerid,carid,0);


Come vedi ci sono 2 dove inserire le coordinate. io metto questo -110.4262,1131.1553,19.7422,

Al posto di quei 2 ma da errori.
@Fully_DJ
 
if (PlayerToPoint(5.0, playerid,-110.4262,1131.1553,19.7422))
{
if(carid == PlayerInfo[playerid][pPcarkey] || carid == PlayerInfo[playerid][pPcarkey2] || carid == PlayerInfo[playerid][pPcarkey3] || carid == PlayerInfo[playerid][pPcarkey4] || carid == PlayerInfo[playerid][pPcarkey5] || carid == PlayerInfo[playerid][pPcarkey6] || carid == PlayerInfo[playerid][pPcarkey7] || carid == PlayerInfo[playerid][pPcarkey8] || carid == PlayerInfo[playerid][pPcarkey9] || carid == PlayerInfo[playerid][pPcarkey10])
{
if(IsPlayerInAnyVehicle(playerid))
{
new plate[126];
new randplate = random(999);
format(plate, sizeof(plate), "SF %d %d", randplate,GetPlayerVehicleID(playerid));
strmid(CarInfo[carid][cTarga],plate, 0, strlen(plate), 999);
OnPropUpdate();
SetVehicleNumberPlate(carid,CarInfo[carid][cTarga]);
GivePlayerCash(playerid,-260);
GameTextForPlayer(playerid, "~p~]~y~]~w~Congratulazioni~y~]~p~]~n~~p~Targa Comprata!", 5000, 3);
SetVehicleToRespawn(carid);
SetVehiclePos(carid, -110.4262,1131.1553,19.7422);
SetVehicleZAngle(carid, 90.1663);
PutPlayerInVehicle(playerid,carid,0);

Scusami ho avuto da fare con il mio server, prova ora.