[DUDA] Teleport
#2

Arriba de todo
  • pawn Код:
    new Float:X[MAX_PLAYERS],Float:Y[MAX_PLAYERS],Float:Z[MAX_PLAYERS];
Comandos
  • pawn Код:
    public OnPlayerCommandText(playerid,cmdtext[])
    {
    if(strcmp(cmdtext,"/lv",true,3)==0)
    {
    GetPlayerPos(playerid,Float:X[playerid],Float:Y[playerid],Float:Z[playerid]);
    SetPlayerPos(playerid,XXXX.XXXX,YYYY.YYYY,ZZZZ.ZZZZ);//Cambia las letras por las coordenadas de lv
    SendClientMessage(playerid,-1,"* Bienvenido a las venturas");
    return 1;
    }
    if(strcmp(cmdtext,"/salir",true)==0)
    {
    SetPlayerPos(playerid,Float:X[playerid],Float:Y[playerid],Float:Z[playerid]);
    return 1;
    }

    return 0;
    }
Reply


Messages In This Thread
[DUDA] Teleport - by EduGTA - 21.06.2011, 21:02
Respuesta: [DUDA] Teleport - by Jovanny - 21.06.2011, 23:07
Re: [DUDA] Teleport - by Mr.GeEk - 22.06.2011, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)