Help with very basic script -
cazz21 - 20.05.2011
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?
Re: Help with very basic script -
ddnbb - 20.05.2011
Well the problem might be somewhere else, than @ OnGameModeInit()
Re: Help with very basic script -
cazz21 - 20.05.2011
you would think that but its on a new script, all i have done it put in new classes?
Re: Help with very basic script -
ddnbb - 20.05.2011
Quote:
Originally Posted by cazz21
you would think that but its on a new script, all i have done it put in new classes?
|
https://sampwiki.blast.hk/wiki/Weapons
Well obviously you have invalid weapons id's. For example, there is no weapon id: 341
Re: Help with very basic script -
cazz21 - 20.05.2011
I put down the models instead of ID's, thanks ddnbb