12.03.2010, 13:24
The classid is not linking to a skinid, it's for the number of classes you create.
The above should be:
I dunno what class id is for what, but you should be able to work it out now. Don't use skin id.
Код:
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)
Код:
public SetPlayerTeamFromClass(playerid,classid) { // Set their team number based on the class they selected. if(classid ==0 || classid == 1|| classid == 2|| classid == 2)