Creo que esto te puede ayudar un poco
Para usar esto necesitas a_tiempos
puedes ver el topic original desde aqui
http://forum.sa-mp.com/showthread.ph...ight=a_tiempos
primero que nada ponemos la variable
pawn Код:
new TCrear:an_cmd[MAX_PLAYERS];
pawn Код:
CMD:an(playerid, params[])
{
if(ETiempo(an_cmd[playerid]))
if(GetPlayerMoney(playerid) <= 100) return SendClientMessage(playerid, -1, "no tienes suficiente dinero");
{
new SenderName[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,SenderName,sizeof(SenderName));
if(isnull(params)) return SendClientMessage(playerid,COLOR_purpleAdm,"usa /an [message]");
format(string, sizeof(string), "*%s %s", SenderName, params);
SendClientMessageToAll(-1, string);//en el -1 le puedes cambiar el color al que tu gustes
ATiempo(an_cmd[playerid], min_s(2));
}
else
{
SendClientMessage(playerid, -1, " /an used !, you can use it in 2 mins !");
}
return 1;
}
Espero que te sirva
RafaelZam
Edited:
parka, no me habia dado cuenta que era un comando para rp
me confundi, pense que era un comando /an de announce xd
:V postie un codigo erroneo
XD
._.