[AYUDAME] Sobre teleports. -
luillixd - 12.04.2010
Hola, gracias de nuevo por atender mi mensaje... Miren, he tratado de hacer teleports, tengo la estructura del scripts (si es que se dice asi) y las coordenadas, pero siempre que pongo el teleport, con o sin coordenadas diferentes, me lleva al DM5 :S, alguna respuesta? D:
Re: [AYUDAME] Sobre teleports. -
.(Infinite Imagination). - 12.04.2010
pasa el codigo del teleport y del dm5.
Re: [AYUDAME] Sobre teleports. -
Roymer - 12.04.2010
No Entendi.
Bueno
Quieres Hacer Teleport Con Comando o Cuando Te Pares en Una Coordenada X te Teleportas a X Coordenada?
Re: [AYUDAME] Sobre teleports. -
luillixd - 12.04.2010
Quote:
if(strcmp(cmd, "/DM4", true) == 0) {
ResetPlayerWeapons(playerid);
new rand = random(sizeof(gDm4PlayerSpawns));
SetPlayerPos(playerid, gDm4PlayerSpawns[rand][0], gDm4PlayerSpawns[rand][1], gDm4PlayerSpawns[rand][2]);
GivePlayerWeapon(playerid, 31, 11000);
GivePlayerWeapon(playerid, 24, 11000);
GivePlayerWeapon(playerid, 16, 2);
SetPlayerInterior(playerid,0);
format(string, sizeof(string), "*** %s entro a DM4. (/DM4)", PlayerName);
SendClientMessageToAll(COLOR_SKIN, string);
return 1;
}
|
este es el code del DM4
__________________________________________________ __________________________________________________
Quote:
if(strcmp(cmd, "lv", true) == 0 {
SetPlayerPos (playerid, 122,415.0858,-2214.9941,6.9090);
SendClientMessageToAll(COLOR_RED, "%s entro a lv.");
return 1;
}
|
y este es el mio D:
Re: [AYUDAME] Sobre teleports. -
laborgward - 12.04.2010
Proba cambiando el tuyo x este, te faltan varias cosas, y estan mal las coordenadas:
pawn Код:
if(strcmp(cmd, "/lv", true) == 0)
{
new Nick[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
SetPlayerPos (playerid, 415.0858,-2214.9941,6.9090);
SetPlayerInterior(playerid, 0);
SendClientMessageToAll(COLOR_RED, "%s entro a /lv.", Nick);
return 1;
}
Con eso ya deberia funcionar bien, sino avisame y postea los errores
salu2
Re: [AYUDAME] Sobre teleports. -
.(Infinite Imagination). - 12.04.2010
Asegurate de antes de cerrar la callback OnPlayerCommandText asi:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
//funciones
return 0; // < esto es lo que puede que te falte.
}
Re: [AYUDAME] Sobre teleports. -
luillixd - 13.04.2010
Quote:
Originally Posted by laborgward
Proba cambiando el tuyo x este, te faltan varias cosas, y estan mal las coordenadas:
pawn Код:
if(strcmp(cmd, "/lv", true) == 0) { new Nick[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nick, MAX_PLAYER_NAME); SetPlayerPos (playerid, 415.0858,-2214.9941,6.9090); SetPlayerInterior(playerid, 0); SendClientMessageToAll(COLOR_RED, "%s entro a /lv.", Nick); return 1; }
Con eso ya deberia funcionar bien, sino avisame y postea los errores
salu2
|
Tu code me tumba el server :S, apenas pongo /lv se cae el server... Y si mi coordenada esta mal, como se sacan? tengo entendido que es de la primera hasta despues de la 3ra coma
Re: [AYUDAME] Sobre teleports. -
laborgward - 13.04.2010
Quote:
Originally Posted by luillixd
Quote:
Originally Posted by laborgward
Proba cambiando el tuyo x este, te faltan varias cosas, y estan mal las coordenadas:
pawn Код:
if(strcmp(cmd, "/lv", true) == 0) { new Nick[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nick, MAX_PLAYER_NAME); SetPlayerPos (playerid, 415.0858,-2214.9941,6.9090); SetPlayerInterior(playerid, 0); SendClientMessageToAll(COLOR_RED, "%s entro a /lv.", Nick); return 1; }
Con eso ya deberia funcionar bien, sino avisame y postea los errores
salu2
|
Tu code me tumba el server :S, apenas pongo /lv se cae el server... Y si mi coordenada esta mal, como se sacan? tengo entendido que es de la primera hasta despues de la 3ra coma
|
Entonces algo esta mal echo no te tira ningun error cuando lo compilas
Tus coordenadas estaban mal xq tenias 3 comas y solo tienen q haber 2
pones /save y en la carpeta donde se guardan las posiciones buska:
AddPlayerClass(playerid, 165, coordenada X, coordenada Y, coordenada Z
, esta la sacas);
Elimina todo lo rojo, osea solo sacas las coordenadas X,Y,Z
bueno fijate y si tira errores o warnings cuando compilas postealos
salu2
Re: [AYUDAME] Sobre teleports. -
luillixd - 13.04.2010
Me saca esto compilandolo
Quote:
C:\SERVER~2\GAMEMO~1\PowerDM.pwn(460) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
|
Re: [AYUDAME] Sobre teleports. -
.(Infinite Imagination). - 13.04.2010
Pasa la linea 460..