Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Spice

#1
how can i add all the vehicles of server (that i have added in server.config ) in database......how can i read all those ....actually i want to add their prices for this i want to read all the cars placed in server.config and and add their default price and owner
#2
i want to show the name tags of specific persons like admins can show/hide their name tags while playing..... can anny one tell me which function i use....?
#3
Support / problem when i run linux server
Aug 08, 2015, 09:18 AM
when i run linux server it gives me an error listing this

/mpsvrrel32: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ./mpsvrrel32)

can annyone tell what should i do...?
#4
i want if a player go on pause menu server auto genrate message player is away
i think this Event will be used onplayer StateChange but i dont know how to use it plz help me...
#5
Is it possible that i creat and remove markers during game.....
For example a marker of gun if i use it on every ammunation and then i want to remove a specific ammunation's marker.....is it possible to do that without closing or restarting server......



I was thinking to store all the markers and their locs in database like id 1 marker of  downtown ammunation and 2 of north point mall .......like this...? am i right?....if yes then also tell me if there is any other easy and alternate idea.....?

ThankX
#6
can adding objects cause lag Server i am not talking about custom objects ......objects whom ids are given by default in server.....
#7
can any one tell me how can i get the all the players of same team id...?
#8
can some one tell me what is the working of these pickup functions....and in how many ways i can use them....


Pickup.StreamedToPlayer
Pickup.Alpha
Pickup.Automatic
#9
i want to get location of a specific place like cuban cafe xyz to use in inpoly function can some one tell me how can i get these xyz point so that a specific place is covered in it.....
#10
i want to colour the specific buildings on map.....like some buildins have red colour on radar....?
if we can then please tell me how...? if not then any alternative way...?
#11
General Discussion / A Request
Jul 27, 2015, 07:48 AM
It is my request to admins of vcmp wiki squirrel scripting web site "http://wiki.vc-mp.org/wiki/Main_Page"
there are many functions whom syntax and examples are not given please complete those functions so that beginers can learn...OR if there is any other site where all the functions are explained please tell us....ThankX
#12
i am facing a problem that if player exit vehicle car does not respawn it remains there...
i am only able to do that if player exit it respawn after a specific time...by using timer
but main problem is that if player again sit back in car it will respawn but it shouldn't....
i think it will be done by Timer.start and Timer.stop but i didnt find any example of syntax of timer.start and stop
if i am right then can u explain me timer's syntax itx function and its use...?

if i am not then please tell me the right way......THANKX
#13
i was trying to do that when 1 hour pas all players in my server get healed
but problem is it heals all players  after 5 to 10 seconds here is code

function healallp( )
{
 Message("** All Players in server have been healed after 1 hour.");
if( GetPlayers() > 0 )
{
 for(local i=0; i<GetPlayers(); i++ )
 {
   local player = FindPlayer( i );
    if ( ( status[ player.ID ].IsReg == true ) && ( status[ player.ID ].IsLogged == true) )
   {
PrivMessage( player, "You have been healed.");
player.Health = 100;
    }
  }
}
}

Since this function works fine but main problem is in timer
i add it
 on Script load
NewTimer( "healallp", 3600000, 0 );
please tell me where i am doing it wrong.?...THANKX
#14
i am trying to do that if i type getcar car alwasys spawn on a specific angle...but when i use

veh.Angle = 275.8177;
my server stop working....
can anyone tell me the problem and solution...?
#15
i want if a player type !fight after 4 seconds he teleport to fight zone
here is my code
if ( cmd == "fight" )
        {
            if ( !player.IsSpawned ) PrivMessage( player, "Error - You hasn't spawned." );
else
{
  PrivMessage("Wait for 4 seconds....", player );
  NewTimer( "fighter", 4000, 1, player.ID );
              Message( ">>" + player.Name + " has gone to fight" );
        }
}
and in functions
function fighter(playerID)
{
local player = FindPlayer( playerID )
if ( player )
{
   player.Pos = Vector(-540.473, 793.28, 196.393);
}
}
the console gives error message 1 has invalid data type string expected instance.....like this
please explain the error
#16
how can i get my player's position.....like in 0.3 it was /s now in 0.4 its not working....is it changed or else...?
i have tried it as a cmd

print(">>" + player.Pos);

but itx also not working.....
#17
i think vcmp 0.4 has much changed than 0.3.....i want to learn new rules how can i do that can any one tell me squirrel only related to vcmp 0.4....any link.....?