Looping :/
#1

Well yer i need a loop that could loop through completely all NPC's created, i'm using CNPC although not using the features that are against the SA-MP TOS. Just creating some NPC's around and preventing from so many timers.

I clearly forgot how to do this method :/
Reply
#2

pawn Code:
for(new i=0;i<MAX_PLAYERS;i++){
if(!IsPlayerConnected(i))continue;
if(IsPlayerNPC(i)){
//do stuff
}
}
? that what ya after?
Reply
#3

yup maddawg thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)