[Tutorial] Creating Simple Checkpoints With Streamer ( The Most Useful Way ) ( The Efficient Checkpoint Making System )
#1

Welcome To The Tutorial


Today i am going to show you guys how to make simple tutorial with Streamer.

First of all you will need to download the Streamer Plugin / Include.


Download It Here


Then after you have successfully downloaded the Streamer plugin go into your pawno and then in the folders there

and after that you have to give in the include place .

Код:
#include <streamer>
and after you have included the streamer then you should do this .

Код:
new cpname;//Give here any cp any of yours mine is cpname
after you have done giving the variable you completed a step of creating checkpoint.

After that you need to make a checkpoint and for making checkpoint we need some thing like we already made the

variable for the Checkpoint if we did'nt make it we could not make the Checkpoint + script would be buggy and

ofcourse for making a Checkpoint we need a variable to detect it.

Our next step is creating a checkpoint using the variable .

Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0); // This is how the real variable is detected like
Over up there we can see how the real variable is divided in many parts with explanation which part is what to put

now its your choice to put it up there and in my choice ill do like this.

Код:
cpname = CreateDynamicCP(-911.2921,2687.7175,42.3703,3, -1,-1,-1,100.0); // Here i used my cp
see i made a cp myself for showing you guys example of how to do the things so you should now know how to

make a checkpoint with streamer and also i used the variable for this reason for only detecting which one is which

Checkpoint.

now we need to know some things which are needed for streamer add these lines.

Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid) 
{

   return 1;
}

public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
   
   return 1;
}
We added these lines because they are part of streamer and if we did not add them we would not be able to

make the streamer checkpoints work the normal publics won't work for streamer you need to put this two at the

bottom of your script or anywhere to make the checkpoints work.

Now to make it work finally we need to put the things in it.

Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid) 
{
   if(checkpointid == cpname)
   {
   GameTextForPlayer(playerid, "~b~Hi", 5000, 6); // When player entering cp it will say hi
   }
   return 1;
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid) 
{
   if(checkpointid == cpname)
   {
   GameTextForPlayer(playerid, "~b~Bye", 5000, 6); // When player is getting out of cp it will say bye
   }
   return 1;
}
Now i have put what will happen see on the entering of checkpoint i gave the if checkpoint id thing to detect

the checkpoint variable then put the variable to get the cp working and here again we are using the variable.

You can put whatever you like when the player enters checkpoint see how easily we made a simple checkpoint

with streamer today like this you can make many checkpoints and things and streamer is the most efficient and

easy way to make checkpoints and now you have successfully made a checkpoint and fully working this should

be a good way to make the checkpoints i hope all of you make checkpoints more easily.


Thanks For Visiting / Reading My Tutorial
Reply
#2

Quote:
Originally Posted by RiyadD
if we did not add them we would not be able to make the streamer checkpoints work
That is wrong, I guess, you need to add them to detect things, but it's not absolutely necessary, without them, it would still work, but it would be rather pointless.
Anyways, this is a good attempt, but would have been a lot better if your english would have been better!
Reply
#3

Thank you but my english is not perfect still i could make it but i can speak english very good and without variable

it is pointless to make cp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)