[HELP]Going in Interiors(Burgershot..etc.)
#1

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?
Reply
#2

@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;
}
Reply
#3

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
Reply
#4

SendDeathMessage(killerid, playerid, reason);
Reply
#5

@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.
Reply
#6

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.
Reply
#7

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.
Reply
#8

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
Reply
#9

Here:

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

And here:

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

Are examples
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)