How do i make checkpoints?
#1

Well how do i start make checkpoints inside buildings and things like that and buildings you cant enter but i want to enter?
How do i do that?
Yes iam a newb :P
Thanks for the help
Reply
#2

Quote:
Originally Posted by [SWE]Anonymous
Посмотреть сообщение
Well how do i start make checkpoints inside buildings and things like that and buildings you cant enter but i want to enter?
How do i do that?
Yes iam a newb :P
Thanks for the help
u cant be serious,****** a darm tutorial ffs
u want we to do all the work fr u?
Reply
#3

Quote:
Originally Posted by Joron
Посмотреть сообщение
u cant be serious,****** a darm tutorial ffs
u want we to do all the work fr u?
Sure, LOL
Reply
#4

Quote:
Originally Posted by [SWE]Anonymous
Посмотреть сообщение
Sure, LOL
Just ****** it ... no one will help u.. if u dont help yourself
Reply
#5

Use pickups instead of checkpoints. See CreatePickup and OnPlayerPickUpPickup at sa-mp wiki.
Reply
#6

It's your own wish to make a checkpoint or pickup( SIZE OF CHECKPOINT LET IT BE LESS ).. To make one checkpoint inside an interior first go to any interior of your own from here http://weedarr.wikidot.com/interior
I may give an example anyway -

Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid,-25.884498,-185.868988,1003.546875);
    return 1;
}
CMD:interior(playerid,params[])
{
	//For the interior id 17
	SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
}
I have set a checkpoint at INTERIOR id 17 , as soon as you spawn , server sets the CHECKPOINT and you can go to it by /interior ( AS I GAVE IN EXAMPLE ). It's an example how you do it. Good luck.
Reply
#7

I Think Make a Pickup look better
Thats Pickup If you Enter pickup You Must teleport to Interior , And The Pickup Is Arrow model
PHP код:
//Use Pickup So Simple
//If you use Checkpoint , The checkpoint Can make Player Confused Because In they Map exist a Red Marker :s
new buildpick;
public 
OnFilterScriptInit/*GamemodeInit*/()//If You're Make In gamemode Change FilterScriptInit To GamemodeInit
{
    
buildpick CreatePickup(1318,1,-258.2597041043.60998520.939863);//thats pickup id 1318 is ARROW DOWN
    
return 1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == buildpick)
    {
        
SetPlayerPos(playerid,435.271331,-80.958938,999.554687);//change with your x,y,z coords
        
SetPlayerInterior(playerid,1);
        
SetPlayerFacingAngle(playerid0);
        
SendClientMessage(playerid,-1,"You're Now at Inside Build");
    }
    return 
1;

Very Simple compared a Checkpoints
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)