[POMOC]Ulazak u int


Započeo matosek123, Februar 17, 2013, 12:13:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moja
Detaljan opis problema:Znaci ja postavim kordinate za ulazak i izlazak, ali kad udjem IG nema mi nikakvih Pickupova za ulaz. Neznam di sam pogresio.
Dio skripte: Ovo su Label-i
Create3DTextLabel("{ff0000}Za ulazak u terminal| Pritisnite Enter",0x9EC73DAA,1642.3110,-2334.7581,13.5469,175.8481,0); // x,y,z kordinata na ulazu u zgradu
    Create3DTextLabel("{ff0000}Za izlazak iz terminala | Pritisnite Enter",0x9EC73DAA,14, -1876.8957519531, 58.365238189697, 1057.1906738281); //x,y,z izlaza iz (interijera) zgrade

A evo i ulaz i izlaz kordinate
// Airport Ulaz
	 if (PlayerToPointStripped(1.5, playerid,1642.3110,-2334.7581,13.5469, cx,cy,cz))// napolje
	 {
	     SetPlayerPos(playerid, 14, -1876.8957519531, 58.365238189697 ); // unutra
	     GameTextForPlayer(playerid, "~w~Airport",5000,1);
	     SetPlayerInterior(playerid,15);
		 PlayerInfo[playerid][pInt] = 15;
	 }
    // Airport Izlaz
	 else if (PlayerToPointStripped(1.5, playerid,2215.0676,-1150.4481,1025.7969, cx,cy,cz)) // unutra
	 {
	     SetPlayerPos(playerid, 14, -1876.8957519531, 58.365238189697); // napolje
	     GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
	     SetPlayerInterior(playerid,0);
		 PlayerInfo[playerid][pInt] = 0;
	 }

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Vatrogasac - Vozač

Where You go out, firefighters goes in

Evo,po tvojim koordinatama bi trebalo ovako biti.
Ovo stavi pod OnGameModeInit


Create3DTextLabel("Za ulazak u terminal| Pritisnite Enter",0xFFFFFFAA,1642.3110,-2334.7581,13.5469,175.8481,20.0, 0);
	Create3DTextLabel("Za izlazak iz terminala | Pritisnite Enter",0xFFFFFFAA,-1876.8957519531, 58.365238189697, 1057.1906738281,20.0, 0);
	
	CreatePickup(1242, 1, 1642.3110,-2334.7581,13.5469,175.8481, -1); // Ulaz
	CreatePickup(1242, 1, -1876.8957519531, 58.365238189697, 1057.1906738281, -1); // Izlaz
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N

Evo idem isprobam, pa ti se javim.

EDIT: Svejedno nece da mi udje. Niti mi napravi Pickup
Poslednja Izmena: Februar 17, 2013, 13:24:08 POSLE PODNE od matosek123
Vatrogasac - Vozač

Where You go out, firefighters goes in

Pod koji callback si stavio ovaj drugi kod i postaj kod za stvaranje pickupova.

Last nick: Paradox

Ovaj drugi kod sam postavio ovdije

public CheckForWalkingTeleport(playerid)
{
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
	new Float:cx, Float:cy, Float:cz;
	GetPlayerPos(playerid, cx, cy, cz);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     // Airport Ulaz
	 if (PlayerToPointStripped(1.5, playerid,1642.3110,-2334.7581,13.5469, cx,cy,cz))// napolje
	 {
	     SetPlayerPos(playerid, 14, -1876.8957519531, 58.365238189697 ); // unutra
	     GameTextForPlayer(playerid, "~w~Airport",5000,1);
	     SetPlayerInterior(playerid,15);
		 PlayerInfo[playerid][pInt] = 15;
	 }
    // Airport Izlaz
	 else if (PlayerToPointStripped(1.5, playerid,2215.0676,-1150.4481,1025.7969, cx,cy,cz)) // unutra
	 {
	     SetPlayerPos(playerid, 14, -1876.8957519531, 58.365238189697); // napolje
	     GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
	     SetPlayerInterior(playerid,0);
		 PlayerInfo[playerid][pInt] = 0;
	 }


A evo ti za stvaranje pickupova

    AdStaticPickup(1242, 1, 1642.3110,-2334.7581,13.5469,175.8481, -1); // Ulaz
    AdStaticPickup(1242, 1, -1876.8957519531, 58.365238189697, 1057.1906738281, -1); // Izlaz
Vatrogasac - Vozač

Where You go out, firefighters goes in

Zamijeni tu CheckForWalkingTeleport funkciju sa ovom:
public CheckForWalkingTeleport(playerid)
{
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
	new Float:cx, Float:cy, Float:cz;
	GetPlayerPos(playerid, cx, cy, cz);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     // Airport Ulaz
	 if (PlayerToPointStripped(1.5, playerid,1642.3110,-2334.7581,13.5469, cx,cy,cz))// napolje
	 {
	     SetPlayerPos(playerid, 2215.0676,-1150.4481,1025.7969 ); // unutra
	     GameTextForPlayer(playerid, "~w~Airport",5000,1);
	     SetPlayerInterior(playerid,15);
		 PlayerInfo[playerid][pInt] = 15;
	 }
    // Airport Izlaz
	 else if (PlayerToPointStripped(1.5, playerid,2215.0676,-1150.4481,1025.7969, cx,cy,cz)) // unutra
	 {
	     SetPlayerPos(playerid, 1642.3110,-2334.7581,13.5469); // napolje
	     GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
	     SetPlayerInterior(playerid,0);
		 PlayerInfo[playerid][pInt] = 0;
	 }


I dodavanje pickupova zamijeni ovime:
    AdStaticPickup(1242, 1, 1642.3110,-2334.7581,13.5469, -1); // Ulaz
    AdStaticPickup(1242, 1, -1876.8957519531, 58.365238189697, 1057.1906738281, -1); // Izlaz

Last nick: Paradox

Svejedno opet nece. Nema mi pickupa ni nista. mogu ti poslat na PM da pogledas?
Vatrogasac - Vozač

Where You go out, firefighters goes in


Moze mi netko pomoc, posto Joey nije uspio?
Vatrogasac - Vozač

Where You go out, firefighters goes in

Blaeks

*

Madmen

pa pickup stavis pod ongamemodeinit, nebi trebalo biti problema?

Ma ne zeli mi jednostavno prikazat pickup. Niti 3d text ni nista. A mapu sam ubacio i imam kordinate od te mape za ulazak..
Vatrogasac - Vozač

Where You go out, firefighters goes in