Tudod kezdo vok nem nagyon tok még npc-ket csinálni.
Itt van ami van a Filterscriptbe:
#include <a_samp>
#include <a_npc>
public OnFilterScriptInit ( )
{
print ( \"Dance\" );
ConnectNPC ( \"Dance1\", \"Dance1\" );
ConnectNPC ( \"Dance2\", \"Dance2\" );
ConnectNPC ( \"Dance3\", \"Dance3\" );
ConnectNPC ( \"Dance4\", \"Dance4\" );
ConnectNPC ( \"Dance5\", \"Dance5\" );
ConnectNPC ( \"Dance6\", \"Dance6\" );
ConnectNPC ( \"Dance7\", \"Dance7\" );
ConnectNPC ( \"Dance8\", \"Dance8\" );
ConnectNPC ( \"Dance9\", \"Dance9\" );
ConnectNPC ( \"Dance10\", \"Dance10\" );
return 1;
}
És ide még mit kell irni vagy esetleg máshova kell?
public OnPlayerSpawn(playerid)
{
if (IsPlayerNPC(playerid))
{
new npcname[20];
GetPlayerName(playerid, npcname, 20);
if (!strcmp(npcname, \"Dance1\", true)) SetPlayerSkin(playerid, 1);
else if (!strcmp(npcname, \"Dance2\", true)) SetPlayerSkin(playerid, 2);
else if (!strcmp(npcname, \"Dance3\", true)) SetPlayerSkin(playerid, 3);
else if (!strcmp(npcname, \"Dance4\", true)) SetPlayerSkin(playerid, 4);
else if (!strcmp(npcname, \"Dance5\", true)) SetPlayerSkin(playerid, 5);
return 1;
}
return 1;
}
Így folytasd. :)