SA-MP Forums Archive
[HELP]Going in Interiors(Burgershot..etc.) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Going in Interiors(Burgershot..etc.) (/showthread.php?tid=190566)



[HELP]Going in Interiors(Burgershot..etc.) - [SU]Balli - 15.11.2010

Hey,
Is there a script that i can enter interiors such as Burgershot, Ammunation and all this stuff? Just like in singleplayer?

//Also can someone help me on my other problem? posted in a another thread.. im new in scripting kinda, sorry if im annoying.

Thanks in advance

//Also is there a script, that shows those icons like if a player leaves gets killed or joins?


Re: [HELP]Going in Interiors(Burgershot..etc.) - blackwave - 15.11.2010

@interiors: you have to look yourself, by trying random coordinates; also interiors.
@messages:

Joins:
Код:
public OnPlayerConnect(playerid)
{
   new string[128],name[30]; 
   GetPlayerName(playerid, name, 30);
   format(string,sizeof(string),"%s has joined the server", name);
   SendClientMessageToAll(0x00FFE6FF, string);
   return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   SendDeathMessage(killerid, playerid, reason);
    SendDeathMessage(playerid, reason);
    return 1;
}



Re: [HELP]Going in Interiors(Burgershot..etc.) - [SU]Balli - 15.11.2010

Thanks. But @messages i don't mean that^^

I mean something like this :



@Interiors,

So i have to add Pickups ( those yellow diamants) And then Set the interior? o.O


Re: [HELP]Going in Interiors(Burgershot..etc.) - willsuckformoney - 15.11.2010

SendDeathMessage(killerid, playerid, reason);


Re: [HELP]Going in Interiors(Burgershot..etc.) - 6d - 15.11.2010

@messages:
read this

@Interiors:
There are many ways to do this kind of stuff.
One of them is to create a pickup, then OnPlayerPickup() make them go inside the interior (SetPlayerInterior, SetPlayerPos).
Now, how to do it?
pawn Код:
//This is at the top
new pickup;


public OnGameModeInit()
{
    pickup=CreatePickup(...);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid==pickup)
    {
        SetPlayerInterior(...);
        SetPlayerPos(...);
    }
}
That's a boost on how to do it.


Re: [HELP]Going in Interiors(Burgershot..etc.) - The_Moddler - 15.11.2010

For this:

Код:
Is there a script that i can enter interiors such as Burgershot, Ammunation and all this stuff? Just like in singleplayer?
You'll have to look in your script for this:

Код:
DisableInteriorEnterExits();
And delete it.


Re: [HELP]Going in Interiors(Burgershot..etc.) - 6d - 16.11.2010

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
For this:

Код:
Is there a script that i can enter interiors such as Burgershot, Ammunation and all this stuff? Just like in singleplayer?
You'll have to look in your script for this:

Код:
DisableInteriorEnterExits();
And delete it.
I think he meant to make the icons, for the icons i suggest going on MTA and searching the ID.


Re: [HELP]Going in Interiors(Burgershot..etc.) - [SU]Balli - 16.11.2010

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
For this:

Код:
Is there a script that i can enter interiors such as Burgershot, Ammunation and all this stuff? Just like in singleplayer?
You'll have to look in your script for this:

Код:
DisableInteriorEnterExits();
And delete it.
No i didn't meant icons or w/e The_Moddler is the best serouisly! Thats how i wanted IT!!! THANK YOU REALLY!!! THANK YOU!!! =D Im so dam happy =]

// Gonna try out if it shows up icons on the >> side\\

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
SendDeathMessage(killerid, playerid, reason);
Ty works too =]
But how do i do it when a player joins / leaves ?
like SendJoinMessage(playerid); ??

And on OnPlayerDisconnect

SendLeaveMessage(playerid); or such? Thanks for the help guys, ur awesome!! Just need this last =D


Re: [HELP]Going in Interiors(Burgershot..etc.) - The_Moddler - 16.11.2010

Here:

https://sampwiki.blast.hk/wiki/OnPlayerConnect

And here:

https://sampwiki.blast.hk/wiki/OnPlayerDisconnect

Are examples


Re: [HELP]Going in Interiors(Burgershot..etc.) - [MWR]Blood - 16.11.2010

pawn Код:
SendDeathMessage(INVALID_PLAYER_ID,playerid,200); // under onplayerconnect
and
pawn Код:
SendDeathMessage(INVALID_PLAYER_ID,playerid,201);//under on player disconnect