My script doesn't work
#2

The classid is not linking to a skinid, it's for the number of classes you create.

Код:
	AddPlayerClass(29,1930.8324,740.1257,10.8203,179.3071,0,0,0,0,0,0); // crims_spawn1
	AddPlayerClass(0,1930.8324,740.1257,10.8203,179.3071,0,0,0,0,0,0); // crims_spawn1
	AddPlayerClass(179,1930.8324,740.1257,10.8203,179.3071,0,0,0,0,0,0); // crims_spawn1
	AddPlayerClass(124,1930.8324,740.1257,10.8203,179.3071,0,0,0,0,0,0); // crims_spawn1

	for (id = 280; id <= 288; id++)
	{
		AddPlayerClass(id,340.0815,2026.1152,22.6406,99.1120,0,0,0,0,0,0); // cops_spawn
	}
Код:
public SetPlayerTeamFromClass(playerid,classid)
{
	// Set their team number based on the class they selected.
	if(classid ==280 || classid == 281 || classid == 282 || classid == 283 || classid == 284 || classid == 285 || classid == 286 || classid == 287 || classid == 288)
The above should be:
Код:
public SetPlayerTeamFromClass(playerid,classid)
{
	// Set their team number based on the class they selected.
	if(classid ==0 || classid == 1|| classid == 2|| classid == 2)
I dunno what class id is for what, but you should be able to work it out now. Don't use skin id.

Reply


Messages In This Thread
My script doesn't work - by biltong - 12.03.2010, 13:22
Re: My script doesn't work - by Rac3r - 12.03.2010, 13:24
Re: My script doesn't work - by biltong - 12.03.2010, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)