SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 02/06/2009, 11:56 PM   #1
Little Clucker
Join Date: May 2009
Posts: 14
Reputation: 0
Default Scripting Help for New server, moved to scripting disscussion

I just created a new server and its the default game mode, lvdm 1. However when I choose a character its always a desert eagle as a weapon, I want to add and change some weapons. Please Help. And do I have to change the weapons for character one by one? Please tell me step by step for the scripting, I'm New to scripting.
Guardian is offline  
Old 03/06/2009, 12:03 AM   #2
Huge Clucker
Join Date: Mar 2009
Posts: 493
Reputation: 0
Default Re: Scripting Help for New server, moved to scripting disscussion

in lvdm there's OnGameModeInit function

sample of the non edited LVDM
pawn Code:
public OnGameModeInit()
    SetGameModeText("Ventura's DM~MG");

    // 0.2.2 specific stuff
    /* Was testing the new pickup limit.
    new Float:pickX=2040.0520;
    new Float:pickY=1319.2799;
    new Float:pickZ=10.3779;
    new x=0;
    while(x!=400) {

    // Player Class's
265- Skin ID
265,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300 -spawn coords
24- is a weapon id ( eagle )
300- is the ammount of ammo on the spawn

Just change the weapon id to whatever you want

*ToM* is offline  
Old 03/06/2009, 06:29 AM   #3
miokie's Avatar
Join Date: Jan 2007
Location: Bedfordshire, England
Posts: 1,148
Reputation: 13
Default Re: Scripting Help for New server, moved to scripting disscussion

You can find weapon Ids on the Wiki

And script resources

In LVDM the last 6 things which are 0,0,24,500,-1,-1
The first one is the weapon and second the ammo
So if you wanted to keep the desert eagle but add for example a M4
It would look like


You can change the -1's to weapon and ammo aswell.


M4, Deagle and SMG would look like

miokie is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOVED: 2 Questions - Scripting / Getting co-ords dugi Server Support 0 04/04/2010 08:33 PM
SCRIPTING QUESTIONS AND SERVER ADS DO NOT GO HERE kaisersouse Server Support 0 13/03/2010 05:42 PM
need help scripting server enkei Help Archive 3 08/12/2009 04:46 PM
Server Scripting Help Needed!! PLEASE HELP! wilcock33 Help Archive 5 20/07/2009 10:33 PM
Roleplay server scripting tommyyyy Help Archive 1 23/05/2009 04:09 PM

All times are GMT. The time now is 02:19 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.