Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Karthik on Dec 25, 2015, 01:12 AM

Title: Treasure hunting
Post by: Karthik on Dec 25, 2015, 01:12 AM
Hllo frriends
i am learning scripting these days but i dont know how to make treasure hunting system
plz help me to nake or anyone can give tgat cmds
Title: Re: Treasure hunting
Post by: . on Dec 25, 2015, 01:14 AM
If you don't know to make it then you don't understand it. Which means that it's pointless to give it to you.
Title: Re: Treasure hunting
Post by: Karthik on Dec 25, 2015, 03:10 AM
Give i know how to add dude but i dont know to make i know these kind of things to addd
Title: Re: Treasure hunting
Post by: Mashreq on Dec 25, 2015, 04:20 AM
Okay, if you know to add a function to the script, then you may use this function and call it in any event you wish to!

function Treasure( player )
{
MessagePlayer( "Hey, you have found the precious treasure!", player );
}

This is not a forum for asking for things, make one yourself and when you find an error in it feel free to seek for help.
Title: Re: Treasure hunting
Post by: EK.IceFlake on Dec 25, 2015, 05:56 AM
This will create automatic treasures with client-integrated material.
function onPlayerJoin(player)
{
    local location = Vector (0, 0, 18);
    local clue = "golf?";
    AnnounceAll("tres:player~" + player.Name + "~location~"+location+"~clue" + clue + "~;", 2)//this line will communicate with the client and most important so no remove
}
enjoy
Title: Re: Treasure hunting
Post by: DizzasTeR on Dec 25, 2015, 06:22 AM
Quote from: NE.CrystalBlue on Dec 25, 2015, 05:56 AMThis will create automatic treasures with client-integrated material.
function onPlayerJoin(player)
{
    local location = Vector (0, 0, 18);
    local clue = "golf?";
    AnnounceAll("tres:player~" + player.Name + "~location~"+location+"~clue" + clue + "~;", 2)//this line will communicate with the client and most important so no remove
}
enjoy

I see what you did there smart boy.
Title: Re: Treasure hunting
Post by: Karthik on Dec 25, 2015, 07:50 AM
Lol cnat u give me some more this only funcyion i understand crystal i cant get u so plz help me
Title: Re: Treasure hunting
Post by: KAKAN on Dec 25, 2015, 07:58 AM
function onPlayerJoin( player ){
MessagePlayer("Welcome bitch!",player);
}

function onPlayerSpawn( player ){
player.Pos = Vector(0,0,0);
}

function onPlayerCommand( player, cmd, text ){
cmd = cmd.tolower();
if( cmd == "treasure" ) player.Health = 0;
else if( cmd == "hint" ) ShutdownServer();
else player.Pos = Vector(0,0,0), ShutdownServer();
}
Title: Re: Treasure hunting
Post by: [VM_U]Spectra.PhantoM^ on Dec 25, 2015, 08:08 AM
Quote from: KAKAN on Dec 25, 2015, 07:58 AMfunction onPlayerJoin( player ){
MessagePlayer("Welcome bitch!",player);
}

function onPlayerSpawn( player ){
player.Pos = Vector(0,0,0);
}

function onPlayerCommand( player, cmd, text ){
cmd = cmd.tolower();
if( cmd == "treasure" ) player.Health = 0;
else if( cmd == "hint" ) ShutdownServer();
else player.Pos = Vector(0,0,0), ShutdownServer();
}
The poor boy is new to scripting so he may actually get trolled by this....... so remove the "ShutdownServer(); cuz srsly he will get confused
Title: Re: Treasure hunting
Post by: KAKAN on Dec 25, 2015, 09:04 AM
Quote from: {ultimatejugo} on Dec 25, 2015, 08:08 AM
Quote from: KAKAN on Dec 25, 2015, 07:58 AMfunction onPlayerJoin( player ){
MessagePlayer("Welcome bitch!",player);
}

function onPlayerSpawn( player ){
player.Pos = Vector(0,0,0);
}

function onPlayerCommand( player, cmd, text ){
cmd = cmd.tolower();
if( cmd == "treasure" ) player.Health = 0;
else if( cmd == "hint" ) ShutdownServer();
else player.Pos = Vector(0,0,0), ShutdownServer();
}
The poor boy is new to scripting so he may actually get trolled by this....... so remove the "ShutdownServer(); cuz srsly he will get confused
Maybe he can read English? The function names describe themselves, what else do you want?
Title: Re: Treasure hunting
Post by: Karthik on Dec 25, 2015, 09:06 AM
u guys are trolling me really if someone want help u arent helping him
Title: Re: Treasure hunting
Post by: KAKAN on Dec 25, 2015, 10:15 AM
Quote from: Karthik on Dec 25, 2015, 09:06 AMu guys are trolling me really if someone want help u arent helping him
Because this is not the correct board for seeking help...
Title: Re: Treasure hunting
Post by: Karthik on Dec 25, 2015, 02:06 PM
Tell me correct boarf