12.02.2013, 00:09
I tried 2 methods.
1st method
2nd method
and I made 42 script_1, scirpt_2.... script_42
1st method
pawn Код:
new name[16];
for(new i=0;i<40;i++){
format(name, sizeof(name), "NPC %d", i);
ConnectNPC(name, "npcidle");
}
pawn Код:
new name[16], script[16];
for(new i=0;i<40;i++){
format(name, sizeof(name), "NPC %d", i);
format(script, sizeof(script), "script_%d", i);
ConnectNPC(name, script);
}