Player id 3: no funciona
#4

aca te dejo mi PM o MP haci te ayudas

Код:
CMD:mp(playerid, params[])
{
	new id;
	new mensaje[132];
    {
    if(sscanf(params, "iS()[132]", id, mensaje))
    {
    SendClientMessage(playerid,COLOR_GRIS,"[MP] /mp <playerid> [mensaje]");
    return 1;
    } else {
    if (id < 0 || id > GetMaxPlayers())
    {
	SendClientMessage(playerid,COLOR_GRIS,"[MP] ID invalida");
	return 1;
	}
	if(!IsPlayerConnected(id))
	{
	SendClientMessage(playerid,COLOR_GRIS,"[MP] El jugador no esta conectado");
	return 1;
	}
    if (id == playerid)
    {
    SendClientMessage(playerid, 0xFF0000FF, "[PM] No puedes enviarte un PM a ti mismo");
	return 1;
    }
	new string[128];
	new string2[128];
	new emisor[MAX_PLAYER_NAME];
	new receptor[MAX_PLAYER_NAME];
	GetPlayerName(playerid,emisor,sizeof(emisor));
	GetPlayerName(id,receptor,sizeof(receptor));
	format(string,sizeof(string),"[MP] %s [ID:%i]: %s",emisor,playerid,mensaje);
	format(string2,sizeof(string),"[MP] Mensaje enviado a %s",receptor);
    SendClientMessage(id,COLOR_AMARILLO,string);
    SendClientMessage(playerid,COLOR_AMARILLO,string2);
	}
    }
	return 1;
}
Reply


Messages In This Thread
Player id 3: no funciona - by [L3th4l] - 29.10.2010, 23:22
Respuesta: Player id 3: no funciona - by MrDeath537 - 29.10.2010, 23:27
Respuesta: Player id 3: no funciona - by Ari3l - 29.10.2010, 23:53
Respuesta: Player id 3: no funciona - by Ari3l - 30.10.2010, 00:02
Re: Player id 3: no funciona - by [L3th4l] - 30.10.2010, 00:05
Respuesta: Player id 3: no funciona - by Ari3l - 30.10.2010, 00:14
Respuesta: Player id 3: no funciona - by MrDeath537 - 30.10.2010, 00:39
Re: Player id 3: no funciona - by [L3th4l] - 30.10.2010, 01:21
Re: Player id 3: no funciona - by MrDeath537 - 30.10.2010, 06:40

Forum Jump:


Users browsing this thread: 1 Guest(s)