07.05.2016, 16:07
The plugin works for the 0.3.7 R2 ? Or only for the 0.3.7 ?
Moreover if it's not that my server crash when I use RNPC functions : the bot connect perfectly but when I'm in its range he should follow me but instead the server crash.
Moreover if it's not that my server crash when I use RNPC functions : the bot connect perfectly but when I'm in its range he should follow me but instead the server crash.
Код HTML:
forward RFollowPlayer(npcid); public RFollowPlayer(npcid) { new Float:zx, Float:zy, Float:zz,Float:x, Float:y, Float:z; for(new i = 0 ;i<MAX_PLAYERS;i++) { if(!IsPlayerNPC(i)) { if (IsPlayerConnected(i)) { GetPlayerPos(npcid, zx, zy, zz); if(IsPlayerInRangeOfPoint(i,RangeZ[i],zx,zy,zz)) { GetPlayerPos(i,x,y,z); RNPC_SetUDKeys(KEY_UP); MoveRNPC(npcid,x,y,z,RNPC_SPEED_RUN,1); } else { Range[i] = 20; } } } } return 1; }