[Include] [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer!
#21

Thank. But my codes not work. Don't show checkpoint. Help...

Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(GetVehicleModel(vehicleid) == 437)
	{
		SetPlayerStreamCheckpoint(playerid, -2215.4680,-2771.3020,35.8780, 3.0, 50); // Tatil Girisi
	}
	return 1;
}
Reply
#22

Very good job on this
Reply
#23

In this script checkpoints are displayed if distance between you and checkpoint is smaller than checkpoint's view distance? That can cause problems if there are more checkpoints that are close together. It will show the checkpoints depending of the view distance, and if you have like two checkpoints close to each other it will get bugged. To solve this make a function like GetNearestCheckpoint and that will only show the checkpoint that you are closest to. So if you have like 5 checkpoints in radius size 15, there will be no problem and the nearest checkpoint will be shown. And as you leave the area of that radius the view distance will take it's effect and it will display the nearest checkpoint untill your distance from checkpoint gets bigger than view distance...
Reply
#24

That's what I did, it shows the checkpoint closest to the player if there are more then 1
Reply
#25

Quote:
Originally Posted by Yaheli
That's what I did, it shows the checkpoint closest to the player if there are more then 1
Than nice job
Reply
#26

Quote:
Originally Posted by Emrets61
Thank. But my codes not work. Don't show checkpoint. Help...

Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(GetVehicleModel(vehicleid) == 437)
	{
		SetPlayerStreamCheckpoint(playerid, -2215.4680,-2771.3020,35.8780, 3.0, 50); // Tatil Girisi
	}
	return 1;
}
... and don't show on map.
Reply
#27

Quote:
Originally Posted by Emrets61
Quote:
Originally Posted by Emrets61
Thank. But my codes not work. Don't show checkpoint. Help...

Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(GetVehicleModel(vehicleid) == 437)
	{
		SetPlayerStreamCheckpoint(playerid, -2215.4680,-2771.3020,35.8780, 3.0, 50); // Tatil Girisi
	}
	return 1;
}
... and don't show on map.
Ahh never mind...
Reply
#28

Quote:
Originally Posted by Dujma
Quote:
Originally Posted by Emrets61
Quote:
Originally Posted by Emrets61
Thank. But my codes not work. Don't show checkpoint. Help...

Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(GetVehicleModel(vehicleid) == 437)
	{
		SetPlayerStreamCheckpoint(playerid, -2215.4680,-2771.3020,35.8780, 3.0, 50); // Tatil Girisi
	}
	return 1;
}
... and don't show on map.
Ahh never mind...
Why ?
Reply
#29

Code:
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(61) : error 021: symbol already defined: "CPInfo"
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(69) : error 008: must be a constant expression; assumed zero
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(69) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(120) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(120) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(120) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(120) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(120) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(120) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(127) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(128) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(129) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(130) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(131) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(156) : error 004: function "OnPlayerEnterStreamCheckpoint" is not implemented
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(167) : warning 217: loose indentation
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(168) : warning 217: loose indentation
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(171) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(171) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(177) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(177) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(181) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(181) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(181) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(181) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(189) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(189) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(189) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(189) : warning 213: tag mismatch
C:\Users\123\Documents\Новая папка (3)\pawno_ru\PAWNO\include\Streamer.inc(198) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#30

Quote:
Originally Posted by Stevelo
Why not just use a timer? I heared that OnPlayerUpdate gets called about 15 times per second, per player. Imagine a server with 200 players using it.
He has a point.
OnPlayerUpdate is executed everytime theres a network update.
If I use that checkpoint streamer in my computer... I don't think I will ever be able to login into my own server
Reply
#31

Just look in the code (+test it) and you will change your mind. It works perfect..
Reply
#32

Код:
public OnPlayerEnterStreamCheckpoint(playerid, checkpointid)
{
	if(checkpointid == Docks)
	{
	  ShowMenuForPlayer(Dokai,playerid);
	}
	return 1;
}
i got this but it doesn't show the menu
Reply
#33

with 1 cp its working fine, but if you have 2 or more close together its bugging!! Fix this and its ok, but like this its nothing xD
Reply
#34

what does it mean?? (checkpoint streamer)
Reply
#35

hi yaheli I use ur CPS and i think its a really good one because i already used over 20 differented and no one is so perfekt than yours.
But I have one question If I use this function:

pawn Код:
DisablePlayerStreamCheckpoint(playerid, checkpointid);
My streamed CP disappears thats good but How can I delete this function?
Like If I want to disable that CP only for a short time and than I want that it will appear again?
I dont want to create a new one because I am sure that I would have than over 1000 of them.
Reply
#36

nice job
Reply
#37

broken link
Reply
#38

Dude,when i try to download,it shows me Zezombia domain for sale and a grave!
Reply
#39

link broke . І
Reply
#40

Can You Please Update Links ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)