[Tutorial] Crear NPC con funciones -
Trenico - 16.07.2010
----------------------------------
Re: [Tutorial] Crear NPC con funciones -
MrDeath537 - 16.07.2010
El tuto esta bastante bueno, me costo entenderte por que abrevias mucho :\. Pero el tuto esta bien. Felicitaciones
Respuesta: [Tutorial] Crear NPC con funciones -
xenowort - 16.07.2010
El tuto esta bien, lastima tu super spam del principio, elimina el link porque te van a borrar el post.
Re: [Tutorial] Crear NPC con funciones -
Trenico - 16.07.2010
uy si no me abia dado duenta ya lo edite
Re: [Tutorial] Crear NPC con funciones -
Zamaroht - 17.07.2010
No se considera spam si el link tiene relaciуn directa con el tema, podйs dejarlo si querйs.
Re: [Tutorial] Crear NPC con funciones -
TheChaoz - 17.07.2010
esta bueno el tuto, bien explicado.
PD: podrias agregar esa funcion ("SetPlayerFacingPlayer") a al topic de funciones utiles ya que muchos por ahi no la conoscan, por ejemplo yo no la conocia...
Re: [Tutorial] Crear NPC con funciones -
CristianTdj - 19.07.2010
Vale, estб bien pero cuida la ortografнa...
Re: [Tutorial] Crear NPC con funciones -
RyanForelli - 20.07.2010
Buen tutorial amigo. Te falto colocar el GetPlayerID, acб lo dejo:
Код:
stock GetPlayerID(const playername[], partofname=0)
{
new i;
new playername1[64];
for (i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i,playername1,sizeof(playername1));
if (strcmp(playername1,playername,true)==0)
{
return i;
}
}
}
new correctsigns_userid=-1;
new tmpuname[128];
new hasmultiple=-1;
if(partofname)
{
for (i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i,tmpuname,sizeof(tmpuname));
if(!strfind(tmpuname,playername1[partofname],true, 0))
{
hasmultiple++;
correctsigns_userid=i;
}
if (hasmultiple>0)
{
return -2;
}
}
}
}
return correctsigns_userid;
}
Re: [Tutorial] Crear NPC con funciones -
CristianTdj - 20.07.2010
Quote:
Originally Posted by RyanForelli
Buen tutorial amigo. Te falto colocar el GetPlayerID, acб lo dejo:
|
El include a_samp ya tiene su propia funciуn para obtenerlo.
Re: [Tutorial] Crear NPC con funciones -
RyanForelli - 20.07.2010
Quote:
Originally Posted by CristianTdj
El include a_samp ya tiene su propia funciуn para obtenerlo.
|
Nop, acabo de buscarlo en el include y no estб.
Y lo tengo actualizado