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 - Kewun

#41
General Discussion / plugins 04rel003 ?
Aug 17, 2016, 08:44 AM
does anyone have 04rel003 plugins? i need them, bcs i want to use good old serverside gui scripting ;c i searched on forums and i found only new 04rel004 plugnis..
#42
what are custom object flags?

i created a football object, but i need a flag for making it moveable ( like box, or beach ball )

how?
#43
function onPlayerActionChange( player, oldAction, newAction )
{
    if ( newAction == 12 ) // it will check if the player goes in new action.
    {
    if ( player.Weapon == 27 || player.Weapon == 26)
    {
    player.Skin = player.Skin;
    }
    }
}

Code tested and working.


#44



what does that red 1 mean?
#45
General Discussion / .col custom object
Aug 15, 2016, 09:45 AM
I have a custom object with only .dff and .txd

i dont have any .col file, is it really required? without .col, i cant join server. i get kicked for invalid defintion in objects.xml

<?xml version="1.0" encoding="ASCII"?>
<objectlist>
   <object id="0">
      <flags value="0" />
      <collision path="" />
      <texture path="lombada.txd" />
      <model path="lombada.dff" distance="350" />
   </object>
</objectlist>
#46
function onFireStart()
{
CreateExplosion(1,1,random(firefighter_pos), -1, true)  // ERRROR * Wrong number of parameters *
Message("[#00ff00]A fire has started somewhere in map, go find it")
}

im getting error wrong numbers of parameters in the CreateExplosion function, what is wrong?

my table of fighter_pos :
local firefighter_pos = [
[[941.928, -1022.5, 10.6707, 0.0138358],
[1195.75, -48.8512, 9.47806, 359.985],
[1128.21, -950.044, 14.472, 0.00264536],
[1370.7, -298.81, 49.52, 359.995],
[913.7, -41.75, 7, 359.985],
[1280.65, -283.827, 34.5798, 0.31984],
[1050.76, -933.853, 14.4798, 359.985],
[1125.76, -388.848, 19.5033, 359.985],
[900.749, -722.203, 14.4648, 359.985],
[1195.74, -167.367, 19.2187, 0.0408136],
[1343.53, -742.229, 14.5921, 359.993],
[1370.76, -388.828, 49.5362, 359.985],
[1125.75, -303.855, 19.4859, 359.985],
[870.7, -273.82, 4.5, 359.985],
[835.75, -368.429, 11.9451, 0.136518],
[1050.75, -768.853, 14.4842, 359.985]],

[[224.31, -1571.4, 25.67, 359.937],
[41.82, -1441.4, 25.7, 359.985],
[426.79, -736.438, 25.6633, 0.00343407],
[106.81, -90.42, 15.67, 0.000608801],
[-63.2039, -886.441, 25.6804, 359.985],
[426.8, -1051.4, 25.68, 359.985],
[106.81, -206.42, 15.7, 359.985],
[146.75, -1143.1, 25.68, 359.985],
[-83.2273, -964.033, 25.6845, 0.0253804],
[406.809, -956.445, 25.6526, 359.985],
[146.88, -1231.4, 25.69, 359.985],
[330.2, -401.4, 22.76, 0.0180807],
[124.07, -606.9, 25.69, 359.985],
[186.883, -1314.75, 25.6379, 359.985],
[251.83, -321.32, 25.02, 359.967],
[306.83, -1041.4, 25.69, 9.52728e-05]],

[[-894.463, 296.869, 33.3691, 359.985],
[-689.9, 122.44, 20.86, 359.994],
[-943.1, -289.19, 33.38, 8.4],
[-1277.83, -23.1354, 60.7767, 359.907],
[-735.6, -576.5, 8.39, 359.985],
[-831.146, -280.638, 28.2178, 359.683],
[-1084.46, 256.369, 3.38379, 359.938],
[-702, -569.6, 13.78, 356.856],
[-996.582, -218.325, 33.9707, 359.93],
[-1165.03, 12.4422, 58.3662, 359.985],
[-800.833, 177.216, 15.8602, 0.794422],
[-739.047, -13.9073, 3.37248, 359.938],
[-810.011, -142.569, 33.3721, 359.986],
[-490.005, 87.4437, 3.37987, 359.985]]
];
#47
if i forgot someone, tell me, ill update the pool :)
#48
Applications / Server Request
Aug 11, 2016, 08:03 PM
User Name: Kewun
Email Address: [email protected]
Server Name: (0.4) Vice City RPG
Port: 9876
Slots(10-100): 45
#50
local bmodels = [
175,
130,
131,
132,
134,
135,
139,
140,
141,
142,
145,
147,
148,
149,
150,
151,
152,
154,
156,
159,
164,
168,
172,
174,
175,
187,
188,
196,
197,
200,
201,
204,
205,
206,
207,
209,
210,
211,
216,
219,
220,
221,
222,
224,
225,
226,
230,
232,
233,
234,
235,
236,
]

onplayerentering:
function onPlayerEnteringVehicle(player, vehicle, seat)
{
if ( player.Vehicle.Model == bmodels )
{
if ( ReadIniBool("stats.ini","b",player.Name)) return true;
else {
MessagePlayer("[#ff0000]You need driver license B, sorry.",player)
return false;
}
}
}


i cant enter the vehicles, even if there is the bool true in stats.ini "b"

no errors prints in the console
#51
lol im getting error in making new register system..

cmd:
if(cmd=="register")
{
if (ReadIniBool("stats.ini","registered",player.Name))
{
MessagePlayer("[#ffffff]You are already registered, please login",player)
return false;
}
else {
if (!text)
{
MessagePlayer("[#ffffff]Please, use /register password",player)
return false;
}
WriteIniString("stats.ini","password",player.Name, text)
WriteIniBool("stats.ini","registered",player.Name,true)
MessagePlayer("[#ffffff]You have been registered!",player)
SaveAccount(player)
}
}

when i try /register 123 or my pass, in the console i get error iniparser: input line too long in stats.ini (1)

what could that mean ? :/ and this doesnt register me ;c
#52
General Discussion / Few suggestions
Aug 09, 2016, 12:44 PM
  [Server] Vehicle.GetEngineState
  [Server] Vehicle.Engine = bool;


would be good
#53
I want to limit vehicle speeds, or if player drives too fast, he must pay a fine of $500

is there a possible way to do that? if so, how ?
#54
Map Showroom / Test Your Sight/Eyes/Aim!
Aug 08, 2016, 02:48 PM
CreateObject( 303, 1, Vector( -275.317, -495.222, 10.2559), 255 ).RotateByEuler( Vector( 0, 1.11759e-008, 0), 0);

CreateObject( 354, 1, Vector( -1068.56, 73.1276, 10.6308), 255 ).RotateByEuler( Vector( 3.14159, 3.14159, 1.49159), 0);

CreateObject( 354, 1, Vector( -1072.63, 73.1276, 10.6308), 255 ).RotateByEuler( Vector( -3.14159, -3.14159, 1.49159), 0);

CreateObject( 354, 1, Vector( -1070.53, 73.1276, 10.6308), 255 ).RotateByEuler( Vector( -3.14159, -3.14159, 1.49159), 0);

CreateObject( 389, 1, Vector( -1062.77, 60.1156, 11.5444), 255 ).RotateByEuler( Vector( 0, 0, 0.02), 0);

CreateObject( 501, 1, Vector( -1077.02, 30.5955, 10.3599), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);

CreateObject( 512, 1, Vector( -1070.71, 1.8742, 35.5408), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);

CreateObject( 3328, 1, Vector( -1068.83, -3.75405, 34.9594), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);

CreateObject( 3328, 1, Vector( -1068.87, 2.28669, 36.3301), 255 ).RotateByEuler( Vector( 0, 1.56, 0), 0);

CreateObject( 511, 1, Vector( -1067.48, 1.84928, 35.5501), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);

CreateObject( 513, 1, Vector( -1069.17, 1.94108, 35.5201), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);

CreateObject( 516, 1, Vector( -1064.72, 1.97405, 36.3301), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);

CreateObject( 518, 1, Vector( -1064.69, 2.00044, 36.3801), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);
CreateObject( 517, 1, Vector( -1064.66, 1.99527, 36.3801), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);
CreateObject( 519, 1, Vector( -1064.68, 2.00844, 36.4001), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);
CreateObject( 520, 1, Vector( -1064.66, 2.00158, 36.4001), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);
CreateObject( 318, 1, Vector( -1074.96, -12.4073, 36.3301), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);
CreateObject( 318, 1, Vector( -1068.28, -12.4073, 36.3301), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);
CreateObject( 318, 1, Vector( -1062.67, -12.4073, 36.3301), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);
CreateObject( 318, 1, Vector( -1078.32, -9.06858, 36.3301), 255 ).RotateByEuler( Vector( 3.14159, 3.14159, 1.5616), 0);
CreateObject( 318, 1, Vector( -1078.37, -2.40858, 36.3301), 255 ).RotateByEuler( Vector( -3.14159, -3.14159, 1.5616), 0);
CreateObject( 318, 1, Vector( -1078.36, -1.33858, 36.3301), 255 ).RotateByEuler( Vector( -3.14159, -3.14159, 1.5616), 0);
CreateObject( 318, 1, Vector( -1059.43, -9.06858, 36.3301), 255 ).RotateByEuler( Vector( -3.14159, -3.14159, 1.5616), 0);
CreateObject( 318, 1, Vector( -1059.48, -2.46856, 36.3301), 255 ).RotateByEuler( Vector( -3.14159, -3.14159, 1.5616), 0);
CreateObject( 318, 1, Vector( -1059.48, -1.31856, 36.3301), 255 ).RotateByEuler( Vector( -3.14159, -3.14159, 1.5616), 0);
CreateObject( 514, 1, Vector( -1069.16, 1.95073, 37.4901), 255 ).RotateByEuler( Vector( 0, 0, 0), 0);


coord to teleport there: Vector(-1069.17, -6.53152, 36.3301)

Pics: http://imgur.com/a/E8eJo

this map is mine.
#55
General Discussion / 3D text draw?
Aug 08, 2016, 10:56 AM
Would be cool to add a function to vcmp Create3DTextdraw in-game you maybe know what i mean
just a suggestion
#56
Videos & Screenshots / Attaching objekts
Aug 08, 2016, 10:22 AM
i think ill create a ctf server

https://www.youtube.com/watch?v=vqIg5LTHEdc#
#57
function onPickupPickedUp(player,pickup)
{
if (pickup.Model == 262)
{
pickup.Respawn();
player.GiveWeapon(4,1)
return 1;
}
if ( pickup.Model == 274)
{
if (player.Cash < 250)
{
MessagePlayer("[#ffffff]You dont have enought cash to buy colt45, need $250",player)
pickup.Respawn();
return false;
}
player.GiveWeapon(17,250)
player.Cash -= 250;
SaveAccount(player)
pickup.Respawn()
return 1;
}
if ( pickup.Model == 277)
{
if (player.Cash < 250)
{
MessagePlayer("[#ffffff]You dont have enought cash to buy shotgun, need $900",player)
pickup.Respawn();
return false;
}
player.GiveWeapon(19,70)
player.Cash -= 900;
SaveAccount(player)
pickup.Respawn()
return 1;
}
if (pickup.Model==366)
{
player.Health = 100;
return 1;
}
if (pickup.Model ==368)
{
player.Armour = 100
return 1;
}
if ( pickup.Model == 283)
{
if (player.Cash < 250)
{
MessagePlayer("[#ffffff]You dont have enought cash to buy uzi, you need $500",player)
pickup.Respawn();
return false;
}
player.GiveWeapon(24,200)
player.Cash -= 500;
pickup.Respawn()
SaveAccount(player)
return 1;
}
return 1;
}

doesnt work, i cant pickup the pickups still. no errors in the console
#58
function onCheckpointEntered(player,sphere)
{
if (sphere.ID==0)
{
if (player.WantedLevel > 0)
{
MessagePlayer("[#ffffff]You are wanted!!!",player)
return false;
}
if(player.Skin != 1)
{
player.Skin = 1;
MessagePlayer("[#ffffff]You started police mission!",player)
}
if (player.Skin == 1)
{
player.Skin = 7;
MessagePlayer("[#ffffff]You quited police mission!",player)
}
}
}
when i walk in the checkpoint, it floods the messages, how to fix this ? :(


screenshot: http://imgur.com/a/mUI1Y
#59
AN ERROR HAS OCCURED [the index 'WantedLevel' does not exist]

CALLSTACK
*FUNCTION [Arrest()] server.nut line [384]
*FUNCTION [onPlayerCommand()] server.nut line [279]

LOCALS
[target] 0
[player] INSTANCE
[this] TABLE
[text] "0"
[cmd] "arrest"
[player] INSTANCE
[this] TABLE


server.nut line 384:

if (target.WantedLevel <1) {
whole function:
function Arrest(player,target)
{
if (target.WantedLevel <1) {
MessagePlayer("This player is not wanted",player)
return false;
}
if (target.WantedLevel > 0) {
MessagePlayer("[#ffffff]Arrested "+targeet+" , you get $2500",player)
player.Cash += 2500;
target.WantedLevel = 0
Message("[#ffffff]Police "+player+ " has arrested "+target)
}
}

second line, 279 error, onPlayerCommand

Arrest(player,text.tointeger())
whole command:
if(cmd=="arrest")
{
if (!text) {
MessagePlayer("Use /arrest id",player)
return false;
}
Arrest(player,text.tointeger())
}
#60
i want a script where when players get in a police car they start police mission and search wanted players and arrest them
i would like, appreicate that 8)