CheckPoint and Sphere

Started by [VSS]Shawn, Jun 20, 2015, 11:18 PM

Previous topic - Next topic

[VSS]Shawn

Hello Friends
Can Anyone Can Tell Me How to Use Function CheckPoint and Spheres?

Diego^

#1
Create Checkpoint

CreateCheckpoint(player, world, pos, ARGB, radius);
Example:
[spoiler]function onPlayerCommand( player, cmd, text )
{
if ( cmd == "createcp" )
       {
       CreateCheckpoint( null, 1, Vector( player.Pos.x, player.Pos.y, player.Pos.z ), ARGB( 255, 255, 0, 0), 10 );
       }
}[/spoiler]

Create Sphere
Click Here
BRL's Developer.

[VSS]Shawn

And For Sphere it will be this?

if ( cmd == "createsp" )
       {
       CreateSphere( null, 1, Vector( player.Pos.x, player.Pos.y, player.Pos.z ), ARGB( 255, 255, 0, 0), 10 );
       }


[VSS]Shawn

Friends i am facing problem when i do /createcp its say index CreateCheckPoint Does Not Exist
Why?

MatheuS

Quote from: [VSS]Shawn on Jun 21, 2015, 08:33 AMFriends i am facing problem when i do /createcp its say index CreateCheckPoint Does Not Exist
Why?

Update your plugins.
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

Stormeus

Also, CreateCheckpoint, not CreateCheckPoint.

[VSS]Shawn

From WHere i Update my plugins?

MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

[VSS]Shawn

when i update window X86 there is server.exe i replace that when i open my server its come
Close the Program

Diego^

Quote from: [VSS]Shawn on Jun 21, 2015, 05:58 PMwhen i update window X86 there is server.exe i replace that when i open my server its come
Close the Program

You updated the squirrel plugin too?
BRL's Developer.

[VSS]Shawn

yep then they give some error on console i cant see them
THen it come CLose Program

Stormeus

Did you update ALL your plugins?

Are you sure everything is the same as in here:
http://forum.vc-mp.org/?topic=870.0

[VSS]Shawn

Thanks Plugins Problem Solve But When i Add onScriptLoad()
this
CreateSphere( null, 1, -918.2058, -341.6375, 13.3802, RGB(215, 0, 225), 2);
it give error on another line and when i remove this server work properly

Stormeus

Your coordinates need to be a Vector.

[VSS]Shawn

Thank You
I add one sphere in bank i want that if someone go in sphere he get frozen and after 10 sec he gets 1000 then sphere remove and respawn after 60 sec
How Can i Do That