23.01.2015, 14:05
Why does only 2 bots connect ?
code
OnPlayerConnect
Connect NPC :
code
OnPlayerConnect
Код:
if(IsPlayerNPC(playerid)) { new npc_name[24]; GetPlayerName(playerid,npc_name,sizeof(npc_name)); if(!strcmp(npc_name,"policininkas",false)) { SetPlayerSkin(playerid, 285); } if(!strcmp(npc_name,"policininkas2",false)) { SetPlayerSkin(playerid, 285); } if(!strcmp(npc_name,"gang1",false)) { SetPlayerSkin(playerid, 106); } if(!strcmp(npc_name,"gang2",false)) { SetPlayerSkin(playerid, 108); } if(!strcmp(npc_name,"gang3",false)) { SetPlayerSkin(playerid, 102); } if(!strcmp(npc_name,"drugdealer",false)) { SetPlayerSkin(playerid, 13); } return 1; }
Код:
ConnectNPC("SWAT Policininkas","policininkas"); ConnectNPC("SWAT Policininkas","policininkas2"); ConnectNPC("Gang Narys","gang1"); ConnectNPC("Gang Narys","gang2"); ConnectNPC("Gang Narys","gang3"); ConnectNPC("Narkotikų prekeivis","drugdealer");