NPC on Larp edit.
#7

it does not madder if its a GF or LARP edit...


i found out it has todo with the "login system"


so i wanna use my Larp Edit now i need a soloution that the BOTS / NPCS dont need to login...

i dont know why u guys so mean and not help with this =(

someone meant i have to do this:



under this...
public SetPlayerSpawn(playerid)


this code:


new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "BOTNAME", true)) {
PutPlayerInVehicle(playerid,BOTAUTO,0)
}
return 1;
}



then:

new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "BOTNAME", true)) {
PutPlayerInVehicle(playerid,BOTAUTO,0)
}
return 1;
}

public OnPlayerRequestClass(playerid, classid)


and this:

new playername[64];
GetPlayerName(playerid,playername,64);

if(IsPlayerNPC(playerid))
{
if(!strcmp(playername,"BOTNAME",true)) {
OnPlayerCommandText(playerid,"/login bot_passwort"); // Ihr mьsst zuerst einen Account mit Passwort fьr den Bot erstell haben
}
}


omg i get errors...

please guys we work 6 hours but no solution...
Reply


Messages In This Thread
NPC on Larp edit. - by r9x - 30.01.2010, 00:03
Re: NPC on Larp edit. - by Devine - 30.01.2010, 00:20
Re: NPC on Larp edit. - by r9x - 30.01.2010, 00:24
Re: NPC on Larp edit. - by Norn - 30.01.2010, 00:26
Re: NPC on Larp edit. - by r9x - 30.01.2010, 00:58
Re: NPC on Larp edit. - by Eazy_Efolife - 30.01.2010, 01:48
Re: NPC on Larp edit. - by r9x - 30.01.2010, 02:44
Re: NPC on Larp edit. - by Norn - 30.01.2010, 02:46
Re: NPC on Larp edit. - by r9x - 30.01.2010, 02:57
Re: NPC on Larp edit. - by r9x - 30.01.2010, 03:06

Forum Jump:


Users browsing this thread: 2 Guest(s)