20.05.2011, 11:02
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?
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?