[POMOC]interior

Započeo Arnel_Bp, Avgust 28, 2013, 19:35:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moja od 0
Detaljan opis problema: pa kad napravim moj interior kako da stavim kad udje ili komanda da se kuca da bude tu, ja sam stavio ovako ali ne moze kad kucam ovu komandu propada u zemlju
Dio skripte: //
if(!strcmp(cmdtext,"/kuca",true)) {
    SetPlayerPos(playerid, 1282.30212, -786.34692, 15);
    SetPlayerInterior(playerid, 0);
    return 1;
	}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Staviš timer na 3 sec da ga freeza ;)
[TuT]-Vozila na posebnog igrača- http://balkan-samp.com/forum/index.php?topic=78806.0 | [FS]-G.P.S- http://balkan-samp.com/forum/index.php?topic=73768.0
[FS]-Rcon Panel- http://balkan-samp.com/forum/index.php?topic=72595.0 | [GM]-Division Street(stari)- http://balkan-samp.com/forum/index.php?topic=78810.0
Citat: magarac poslato Avgust 28, 2013, 18:58:01 POSLE PODNE
Ma jbt ne zelim ja to...... koji k ce mi takva camera di trci okolo......

<script type="text/javascript">
var bannersnack_embed = {"hash":"bxui659h2","width":400,"height":130,"t":1421676936,"userId":16712396,"bgcolor":"#3D3D3D","wmode":"opaque"};
</script>
<script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script>


Evo ovo dodaš u tu cmd..
    TogglePlayerControllable(igrac, false);

i staviš SetTimerEx("FreezeIgraca",3000, false, "i", playerid);
i onda napraviš forward

forward FreezeIgraca(playerid);
public FreezeIgraca(playerid)
{
    TogglePlayerControllable(igrac, true);
    return 1;
}
Evo ovako izvoliš!s
[TuT]-Vozila na posebnog igrača- http://balkan-samp.com/forum/index.php?topic=78806.0 | [FS]-G.P.S- http://balkan-samp.com/forum/index.php?topic=73768.0
[FS]-Rcon Panel- http://balkan-samp.com/forum/index.php?topic=72595.0 | [GM]-Division Street(stari)- http://balkan-samp.com/forum/index.php?topic=78810.0
Citat: magarac poslato Avgust 28, 2013, 18:58:01 POSLE PODNE
Ma jbt ne zelim ja to...... koji k ce mi takva camera di trci okolo......

<script type="text/javascript">
var bannersnack_embed = {"hash":"bxui659h2","width":400,"height":130,"t":1421676936,"userId":16712396,"bgcolor":"#3D3D3D","wmode":"opaque"};
</script>
<script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script>

Citat: FalconyAS poslato Avgust 28, 2013, 19:47:30 POSLE PODNE
Evo ovo dodaš u tu cmd..
    TogglePlayerControllable(igrac, false);

i staviš SetTimerEx("FreezeIgraca",3000, false, "i", playerid);
i onda napraviš forward

forward FreezeIgraca(playerid);
public FreezeIgraca(playerid)
{
    TogglePlayerControllable(igrac, true);
    return 1;
}
Evo ovako izvoliš!s

C:\Users\Arnel\Downloads\Desktop\srw1\filterscripts\house.pwn(114) : error 017: undefined symbol "igrac"
C:\Users\Arnel\Downloads\Desktop\srw1\filterscripts\house.pwn(116) : error 029: invalid expression, assumed zero
C:\Users\Arnel\Downloads\Desktop\srw1\filterscripts\house.pwn(121) : warning 235: public function lacks forward declaration (symbol "FreezeIgraca")
C:\Users\Arnel\Downloads\Desktop\srw1\filterscripts\house.pwn(123) : error 017: undefined symbol "igrac"


sta da radim sa ovime ovako sam stavio

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext,"/aa",true)) {
    SetPlayerPos(playerid, 1282.30212, -786.34692, 15);
    SetPlayerInterior(playerid, 0);
	TogglePlayerControllable(igrac, false);
	SetTimerEx("FreezeIgraca",3000, false, "i", playerid);
	forward FreezeIgraca(playerid);
    return 1;
	}
	return 0;
}
public FreezeIgraca(playerid)
{
    TogglePlayerControllable(igrac, true);
    return 1;
}

public FreezeIgraca(playerid)
{
    TogglePlayerControllable(playerid, true);
    return 1;
}

srry malko sam se zanio pa sam uzeo krivo i tamo u cmd stavi
Umjesto
  TogglePlayerControllable(igrac, false);
stavi
  TogglePlayerControllable(playerid, false);
[TuT]-Vozila na posebnog igrača- http://balkan-samp.com/forum/index.php?topic=78806.0 | [FS]-G.P.S- http://balkan-samp.com/forum/index.php?topic=73768.0
[FS]-Rcon Panel- http://balkan-samp.com/forum/index.php?topic=72595.0 | [GM]-Division Street(stari)- http://balkan-samp.com/forum/index.php?topic=78810.0
Citat: magarac poslato Avgust 28, 2013, 18:58:01 POSLE PODNE
Ma jbt ne zelim ja to...... koji k ce mi takva camera di trci okolo......

<script type="text/javascript">
var bannersnack_embed = {"hash":"bxui659h2","width":400,"height":130,"t":1421676936,"userId":16712396,"bgcolor":"#3D3D3D","wmode":"opaque"};
</script>
<script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script>

Citat: FalconyAS poslato Avgust 28, 2013, 20:18:18 POSLE PODNE
public FreezeIgraca(playerid)
{
    TogglePlayerControllable(playerid, true);
    return 1;
}

srry malko sam se zanio pa sam uzeo krivo i tamo u cmd stavi
Umjesto
  TogglePlayerControllable(igrac, false);
stavi
  TogglePlayerControllable(playerid, false);

dobro nego mi reci, stavio sam check point ispred kuce neke i tu stavio interior 7 ammunia za weapons i sad me interesuje kako da napravim u taj interior jos jedan check point da moze da izadje vani ?

Udjes unutra, stanes kod mesta gde zelis da bude izlaz, kucas /save, odes u My Documents\GTA San Andreas User Files\SAMP\savedpoints.txt , uzmes koordinate i ubacis ih u komandu! Primer:

if(strcmp(cmd, "/gotols", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(IsPlayerInRangeOfPoint(playerid, 5,Koordinate iz file savedpoints.txt))
   	 		{
				SetPlayerPos(playerid, Koordinate za napolje);
    			SetPlayerInterior(playerid, 0);
			}
		}
		return 1;
	}