Un Comando
#8

Este codigo te va a servir... a mi me funciona
pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
pawn Код:
dcmd_comando(playerid, params[])
{
    new Float:x, Float:y, Float:z;
    if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "USE: \"/comando <Coordenada X> <Coordenada Y> <Coordenada Z>\"");
    else
    {
      new string[64];
      SetPlayerPos(playerid, x, y, z);
      format(string, sizeof(string), "Usted ha sido teletransportado a la posision %f, %f, %f", x, y, z);
      SendClientMessage(playerid, 0xFFFFFFFF, string);
    }
    return 0;
}
Reply


Messages In This Thread
Un Comando - by Jesus^ - 14.05.2010, 02:38
Re: Un Comando - by Carlos_Martinez - 14.05.2010, 02:52
Re: Un Comando - by Jesus^ - 14.05.2010, 03:07
Re: Un Comando - by TheChaoz - 14.05.2010, 03:22
Re: Un Comando - by Jesus^ - 14.05.2010, 04:17
Re: Un Comando - by ansuke5000 - 14.05.2010, 14:25
Re: Un Comando - by Jesus^ - 14.05.2010, 14:36
Re: Un Comando - by DanielAvila-17 - 14.05.2010, 17:56
Re: Un Comando - by Cesar_Biker - 14.05.2010, 20:59
Re: Un Comando - by TheChaoz - 14.05.2010, 23:54

Forum Jump:


Users browsing this thread: 2 Guest(s)