17.12.2011, 09:26
Только чёто не воспроизводятся анимации при OnPlayerSpawn...
Вот паблик:
Вот ConnectNPC:
НПС появляются нормально, только паблик OnPlayerSpawn не выполняется...
Вот паблик:
Code:
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); new randskin = random(299)+1; if(!strcmp(npcname, "Dancer", true)) { SetPlayerSkin(playerid,randskin); ApplyAnimation(playerid,"DANCING","DAN_Down_A",4.1,1,1,1,1,1); return 1; } if(!strcmp(npcname, "Dancer2", true)) { SetPlayerSkin(playerid,randskin); ApplyAnimation(playerid,"DANCING","DAN_Left_A",4.1,1,1,1,1,1); return 1; } } return 1; }
Code:
ConnectNPC("Dancer","dancer_1"); ConnectNPC("Dancer2","dancer_2"); ConnectNPC("Dancer3","dancer_3"); ConnectNPC("Dancer4","dancer_4"); ConnectNPC("Dancer5","dancer_5"); ConnectNPC("Dancer6","dancer_6"); ConnectNPC("Dancer7","dancer_7"); ConnectNPC("Dancer8","dancer_8"); ConnectNPC("Dancer9","dancer_9"); ConnectNPC("Dancerf0","dancer_10"); ConnectNPC("Dance1f23r","dancer_11"); ConnectNPC("Dance1f3r","dancer_12"); ConnectNPC("Danc51f4er","dancer_13"); ConnectNPC("Dance1f24r","dancer_14"); ConnectNPC("Danc125f123er","dancer_15"); ConnectNPC("Dan151f25cer","dancer_16"); ConnectNPC("Danc21f3513er","dancer_17");