[DUDA] Comando
#3

Gracias, para no hacer otro topic, como puedo hacer que tenga que poner una razуn? en sscanf...
EJ: /Congelar ID Razon SALUDOS Y GRACIAS!

Asн lo tengo:
Код:
CMD:Congelar(playerid, params[])
{
    if(pInfo[playerid][Logueado] == 0) return Error(playerid, 11);
   	if(pInfo[playerid][Nivel] >= 2) return Error(playerid, 3);
	new string[128], PlayerCongelado;
	if(sscanf(params, "u", PlayerCongelado)) return SendClientMessage(playerid, COLOR_AZUL, "[ERROR]: {FFFFFF}Uso: /Congelar [ID]");
	TogglePlayerControllable(PlayerCongelado, 0);
	format(string, sizeof(string), "{375FFF}[INFO]: {FFFFFF}El administrador [%s] te ha congelado [RAZON: %d]", aNombre(playerid));
	SendClientMessage(PlayerCongelado, -1, string);
	format(string, sizeof(string), "{375FFF}[INFO]: {FFFFFF}El administrador [%s] ha congelado al usuario [%s] [RAZON: %d]", aNombre(playerid), aNombre(PlayerCongelado));
	SendClientMessageToAll(-1, string);
	return 1;
}
Reply


Messages In This Thread
[DUDA] Comando - by Matyaas - 12.05.2013, 22:05
Re: [DUDA] Comando - by Jovazxc - 12.05.2013, 22:06
Respuesta: [DUDA] Comando - by Matyaas - 12.05.2013, 22:34
Respuesta: [DUDA] Comando - by JustBored - 12.05.2013, 22:41
Respuesta: [DUDA] Comando - by Matyaas - 12.05.2013, 22:47
Respuesta: [DUDA] Comando - by DesingMyCry - 13.05.2013, 00:24
Respuesta: [DUDA] Comando - by Matyaas - 13.05.2013, 00:48
Respuesta: [DUDA] Comando - by DesingMyCry - 13.05.2013, 01:35

Forum Jump:


Users browsing this thread: 1 Guest(s)