Liberty Unleashed

Scripting => Script Help => Topic started by: mimomohamed on October 30, 2011, 03:11:25 pm

Title: need simple help
Post by: mimomohamed on October 30, 2011, 03:11:25 pm
How can i make things appear for 1 person not for all players like the Checkpoint i need it to appear for 1 person only not for all the server  ;D :D
Title: Re: need simple help
Post by: mimomohamed on October 30, 2011, 03:36:54 pm
sorry but this is one tell me how to make it
CreateCheckpoint( Vector( x, y, z ), 11.0, Colour( 255, 0, 0 ) );
Title: Re: need simple help
Post by: mimomohamed on October 30, 2011, 03:47:29 pm
function onScriptLoad()
Title: Re: need simple help
Post by: mimomohamed on October 30, 2011, 03:51:28 pm
THANKS SVENKO
Title: Re: need simple help
Post by: Juppi on October 30, 2011, 09:59:44 pm
A few fixes, first of all onScriptLoad doesn't have a player argument, so I'd suggest using onPlayerJoin (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Events/Player/onPlayerJoin) instead. Secondly, for player owned checkpoints you'll have to use CreateClientCheckpoint (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Checkpoints/CreateClientCheckpoint). The examples in the wiki should get you started.
Title: Re: need simple help
Post by: mimomohamed on October 31, 2011, 10:39:49 am
thanks for your help :D