Stellet 7 Odesláno: 1. Únor, 2015 Share Odesláno: 1. Únor, 2015 Ahoj takže udělal jsem si příkaz tento: new sheriff2[MAX_PLAYERS]; dcmd_sdgaraz(playerid,params[]) { if(Player[playerid][Team]!=1) return SendClientMessage(playerid,COLOR_WHITE,"Nejsi člen sheriffů!"); #pragma unused params if(!sheriff2[playerid]) { sheriff2[playerid] = 1; if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),2297.9875,2498.3862,3.0005); }else{ SetPlayerPos(playerid,2297.9875,2498.3862,3.0005); } } else { sheriff2[playerid] = 0; if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),-2223.9888,-2285.3928,30.3272); }else{ SetPlayerPos(playerid,-2223.9888,-2285.3928,30.3272); } } return 1; } Ale když se portnu tak mám neviditelný auto a fakt nevím proč. Screen: Link to comment Share on other sites More sharing options...
0 VolfikCZ 33 Odesláno: 1. Únor, 2015 Share Odesláno: 1. Únor, 2015 taky jsem narazil na ten to problém kdy si je to tím že auto s interieru se portne na vytvořený object..zkus vyjet s garáže a jdi normálně na cestu .. Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 1. Únor, 2015 Author Share Odesláno: 1. Únor, 2015 jenže jak to mám udělat když stanici mám v angel pine a tu garáž v LV... ? Link to comment Share on other sites More sharing options...
0 VolfikCZ 33 Odesláno: 1. Únor, 2015 Share Odesláno: 1. Únor, 2015 příkaz ? prostě to udělej na příkaz portneš hráče z angel pine do lv a pak na opak z lv do AP..samozřejmě s autem ho portneš.. Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 1. Únor, 2015 Author Share Odesláno: 1. Únor, 2015 No vždyt to mám, nebo to mám dát každý na jiný příkaz nebo co ? Link to comment Share on other sites More sharing options...
0 VolfikCZ 33 Odesláno: 1. Únor, 2015 Share Odesláno: 1. Únor, 2015 Né nech to tak,máš to dobře,ale stejně ti to nepomůže proto že když se portneš s autem z interieru do jiného interieru/worldu tak ti to nepomůže to prostě je chyba sampu prostě stím autem musíš vyjet na cestu to auto nesmí stát na postavenén objectu. Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 1. Únor, 2015 Author Share Odesláno: 1. Únor, 2015 je dinvé že auto nevidím jen já.. Spolujezdec vidí normál Link to comment Share on other sites More sharing options...
0 VolfikCZ 33 Odesláno: 1. Únor, 2015 Share Odesláno: 1. Únor, 2015 Jel si stím autem na cestu mimo namapovanou mapu ? Mimo tu stanici pryč ? Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 1. Únor, 2015 Author Share Odesláno: 1. Únor, 2015 nene jdu to zkusit ale vidí to ten spolujezdec i u stanice.. tak takto to jde když vyjedu na objekt třeba silnici a není to jen u nějákého objectu že není vidět to auto ? Link to comment Share on other sites More sharing options...
0 VolfikCZ 33 Odesláno: 1. Únor, 2015 Share Odesláno: 1. Únor, 2015 Je to možné,proto ti říkám pokud to dělá object tak zkus stoho objectu z té namapované oblasti (stanice) odjed stím autem. Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 1. Únor, 2015 Author Share Odesláno: 1. Únor, 2015 no mimo stanici vidím Link to comment Share on other sites More sharing options...
0 Matess 36 Odesláno: 1. Únor, 2015 Share Odesláno: 1. Únor, 2015 Nevim z jakého interieru se portuješ, ale : http://wiki.sa-mp.com/wiki/LinkVehicleToInterior Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 1. Únor, 2015 Author Share Odesláno: 1. Únor, 2015 Ale já se portuju z garáže LV (policejní) a jinak jako v tom http://wiki.sa-mp.co...hicleToInterior musím definovat všechny auta nebo co ? Link to comment Share on other sites More sharing options...
0 Matess 36 Odesláno: 1. Únor, 2015 Share Odesláno: 1. Únor, 2015 Ne, pouze to auto které zrovna portuješ nastavíš do interieru 0. Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 1. Únor, 2015 Author Share Odesláno: 1. Únor, 2015 Matess ? takže to bude takto ? dcmd_sdgaraz(playerid,params[]) { if(Player[playerid][Team]!=1) return SendClientMessage(playerid,COLOR_WHITE,"Nejsi člen sheriffů!"); #pragma unused params if(!sheriff2[playerid]) { sheriff2[playerid] = 1; if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),2297.9875,2498.3862,3.0005); }else{ SetPlayerPos(playerid,2297.9875,2498.3862,3.0005); } LinkVehicleToInterior(GetPlayerVehicleID(playerid),0); } else { sheriff2[playerid] = 0; if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),-2223.9888,-2285.3928,30.3272); }else{ SetPlayerPos(playerid,-2223.9888,-2285.3928,30.3272); } LinkVehicleToInterior(GetPlayerVehicleID(playerid),0); } return 1; } Link to comment Share on other sites More sharing options...
0 w.endelin 15 Odesláno: 2. Únor, 2015 Share Odesláno: 2. Únor, 2015 Zkus si na začátku přikazu udělat proměnou a zjisti auto ve kterém sedí, a potom až to auto portne tak zkus PutPlayerInVehicle.. Link to comment Share on other sites More sharing options...
Dotaz
Stellet 7
Ahoj takže udělal jsem si příkaz tento:
Ale když se portnu tak mám neviditelný auto a fakt nevím proč.
Screen:
Link to comment
Share on other sites
15 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now