Help with very basic script
#1

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?
Reply
#2

Well the problem might be somewhere else, than @ OnGameModeInit()
Reply
#3

you would think that but its on a new script, all i have done it put in new classes?
Reply
#4

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?
https://sampwiki.blast.hk/wiki/Weapons

Well obviously you have invalid weapons id's. For example, there is no weapon id: 341
Reply
#5

I put down the models instead of ID's, thanks ddnbb
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)