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

Messages - Derwaish.

#16
Hello Friends,
                     I am newbie in scripting.My friends helped me in adding vehicles in server using /cveh command. But they have changed the costs of vehicles.I mean , I added a PCJ with 350000 cost while my friends added the pcj's on different costs. I am trying to create a function to auto update cost of same model of vehicles using that function in " OnScriptLoad " function. Can anybody help me.

function updatec(vehicle)
{
local veh = QuerySQL( Vehicles,"SELECT FROM Sale WHERE Model='"+Vehicle.Model+"'"); ;
QuerySQL( Vehicles,"UPDATE Sale SET Cost='"+Price+"' WHERE Model='"+Vehicle.Model+"'");
if( veh.Model == 191) return "350000";
else if(veh == 232) return "450000"; //hotring
}
#17
Off-Topic General / What will be ID?
Jul 29, 2017, 05:29 AM
Hello Friends, I am trying to find ID of the ring that is in stadium. I mostly use MooMapper for searching the ID of objects but how can i find the ID of this ring. We can not enter in stadium using moomapper.

http://i.imgur.com/WUeJRlt.jpg
#18
Oh. Let me see a dream to find out error's in your scripts.
#19
Sure its estate city
#21
you forgot to add.
if( player.Cash < 250 ) return MessagePlayer( ">> [#FF00FF]You don't have enough Cash to fix vehicle. Fix-Cost: $250", player );

Full Command
else if ( cmd == "fix" )
 {
  if( player.Cash < 250 ) return MessagePlayer( ">> [#FF00FF]You don't have enough Cash to fix vehicle. Fix-Cost: $250", player );

 else if ( !player.Vehicle ) MessagePlayer( "There is no car for fix.", player );
 else if ( ( player.Vehicle.Health == 1000 )  && ( player.Vehicle.GetTyre(0) == 0 || player.Vehicle.GetTyre(1) == 0 || player.Vehicle.GetTyre(2) == 0 || player.Vehicle.GetTyre(3) == 0 ) ) MessagePlayer( "Error.", player );
 else
  {
  player.Cash -=250
  player.Vehicle.Fix();
  MessagePlayer( "Fixed.", player );
  }
 }
#22
Quote from: [UK]Razor5K. on Jun 08, 2017, 02:09 PMWhen I hit the pickup, nothing happens ...
Only appeared once.
Give error screenshot. you did not copy paste properly.
#24
Snippet Showroom / Re: Simple spree system
Jun 04, 2017, 06:21 AM
Quote from: Zeeshan.Bhatti on Jun 04, 2017, 06:13 AMmay be your onPlayerKill function fault, post your onplayerkill here.



 spree[ killer.ID ].Inc();
    spree[ player.ID ].End( killer );
Copied from Given link
Quote from: KAKAN on Jun 04, 2017, 06:00 AM
Quote from: R on Jun 04, 2017, 03:38 AM@KAKAN I found a bug in your script. The victim is on killing spree while killer is not and when victim killed Killer he end his own spree. lol


Quote from: Thijn on May 09, 2016, 04:09 PMThen you probably didn't copy paste it correctly.

Hmm. Let me try again in Blank Server.

#25
Snippet Showroom / Re: Simple spree system
Jun 04, 2017, 03:38 AM
@KAKAN I found a bug in your script. The victim is on killing spree while killer is not and when victim killed Killer he end his own spree. lol

#26
Problem Solved............ :D
#27
Off-Topic General / IRC Users
Dec 12, 2016, 10:23 AM
Hello,
        I want to know about the IRC. When i join a channel it shows my nick in IRC users list.There are some other nicks also like Fullfilles, Digo kongo, kiki etc. But when i quite irc channel my nick is removed from the users list. Why? Why other users nicks are in list? I said to my friend to join IRC channel and check if my nick is in Users list.



#29
Off-Topic General / Skins Name
Sep 06, 2016, 03:05 PM
Can anyone tell me what is the name of This skin?



Like This is Tommy

#30
shouldn't it be banned?