17.10.2010, 12:21
Hello!
I've built a house, with some strippers in it, it's nice.
But sometimes, One or two of them are just standing still (annoying), and sometimes, all of them dance and it all works fine.
I don't know what's causing this, but i have tried to figure it out for a while now, but i cant fix it!
And there's also a bartender but he's supposed to stand still, and he does.
when they connect...
...And when the bots join..
I've built a house, with some strippers in it, it's nice.
But sometimes, One or two of them are just standing still (annoying), and sometimes, all of them dance and it all works fine.
I don't know what's causing this, but i have tried to figure it out for a while now, but i cant fix it!
And there's also a bartender but he's supposed to stand still, and he does.
when they connect...
Код:
public OnFilterScriptInit() { SetTimer("bot1",2000,false); return 1; }
Код:
public bot1(playerid) { ConnectNPC("Bartender","barbot"); SetTimer("bot2",2000,false); return 1; } public bot2(playerid) { ConnectNPC("Stripper1","stripbot1"); SetTimer("bot3",2000,false); return 1; } public bot3(playerid) { ConnectNPC("Stripper2","stripbot2"); SetTimer("bot4",2000,false); return 1; } public bot4(playerid) { ConnectNPC("Stripper3","stripbot3"); return 1; }
Код:
public OnPlayerRequestClass(playerid, classid) { if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script new playername[64]; GetPlayerName(playerid,playername,64); if(!strcmp(playername,"Bartender",true)) { SetPlayerSkin(playerid,188); SpawnPlayer(playerid); return 1; } if(!strcmp(playername,"Stripper1",true)) { SetPlayerSkin(playerid,246); SpawnPlayer(playerid); return 1; } if(!strcmp(playername,"Stripper2",true)) { SetPlayerSkin(playerid,152); SpawnPlayer(playerid); return 1; } if(!strcmp(playername,"Stripper3",true)) { SetPlayerSkin(playerid,256); SpawnPlayer(playerid); return 1; } return 1; }