SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 20/05/2011, 11:02 AM   #1
cazz21
Little Clucker
 
Join Date: May 2009
Posts: 11
Reputation: 0
Question Help with very basic script

I'm having a slight problem with my script. Firstly when players spawn they don't seem to have any of the weapons there class is meant to have. As a work around i was think about putting something like If (playerskin [282]) Give weapons id blah blah blah.

here it is

public OnGameModeInit()
{

SetGameModeText("Beta");

AddPlayerClass(187,2439.3425,2376.7341,10.8203,91. 5491,341,1,321,1,362,5000); // admin-governer
AddPlayerClass(166,2439.3425,2376.7341,10.8203,91. 5491,348,70,349,30,0,0); // body guard 1
AddPlayerClass(165,2439.3425,2376.7341,10.8203,91. 5491,348,70,349,30,0,0); // body guard 2
AddPlayerClass(282,2287.3179,2423.6140,10.8203,180 .4711,334,1,348,70,349,30); // police spawn
return 1;
}

compiler shows no errors, what am i doing wrong?
cazz21 is offline  
Old 20/05/2011, 12:07 PM   #2
ddnbb
Huge Clucker
 
ddnbb's Avatar
 
Join Date: May 2011
Posts: 207
Reputation: 40
Default Re: Help with very basic script

Well the problem might be somewhere else, than @ OnGameModeInit()
ddnbb is offline  
Old 20/05/2011, 12:09 PM   #3
cazz21
Little Clucker
 
Join Date: May 2009
Posts: 11
Reputation: 0
Default Re: Help with very basic script

you would think that but its on a new script, all i have done it put in new classes?
cazz21 is offline  
Old 20/05/2011, 12:16 PM   #4
ddnbb
Huge Clucker
 
ddnbb's Avatar
 
Join Date: May 2011
Posts: 207
Reputation: 40
Default Re: Help with very basic script

Quote:
Originally Posted by cazz21 View Post
you would think that but its on a new script, all i have done it put in new classes?
http://wiki.sa-mp.com/wiki/Weapons

Well obviously you have invalid weapons id's. For example, there is no weapon id: 341
ddnbb is offline  
Old 20/05/2011, 12:33 PM   #5
cazz21
Little Clucker
 
Join Date: May 2009
Posts: 11
Reputation: 0
Default Re: Help with very basic script

I put down the models instead of ID's, thanks ddnbb
cazz21 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
Basic features of a RP script SMCentral Help Archive 6 02/02/2010 12:17 PM
[FilterScript] [FS] Weaponshop v0.4 basic script Teamsviggy Filterscripts 5 17/01/2010 04:38 AM
What is a Basic Police Script Function Help Archive 2 11/08/2009 09:47 PM
basic script easy way? yuichi Help Archive 2 22/07/2009 07:41 PM


All times are GMT. The time now is 10:42 PM.


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