Adding Player Classes [HELP]
#1

Ok, im now scripting a turf wars server and im in a pickle.

i made a list of all the skins i want to use but theirs allot and i think theirs an easier way.

Lets say i have 1 team with skinid: 100 101 102 103 104 105 106 107 etc.....
and another team with skinid: 200 201 202 203 204 205 etc.....

and instead of putting
AddPlayerClass(blablabla) for each skinid

can i make something like:

new BallaSkins {100,101,102,103,104,105,106}

and then put
AddPlayerClass(BallaSkins,blabla pos and weps);

can it be done?
Reply
#2

anyone? please
Reply
#3

Not many people are on. Be patient
Reply
#4

pawn Код:
new BallaSkins[] = { 100, 101, 102, 103, 104, 105, 106 };
pawn Код:
for(new skin; skin < sizeof(BallaSkins); skin++) AddPlayerClass(BallaSkins[skin], ...);
Reply
#5

thx man thats exactly what i needed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)