14.05.2010, 17:56
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;
}