Wysłany: 2013-09-11, 22:43
awfesa
Wiek: 29 Na forum: 4705 dni Posty: 563
Piwa : 223
Witam jak zrobi? aby po wpisaniu say wyskakiwa? napis na okre?lony czas np. /say 10 siema za pomoc daje
Kod: COMMAND:say(playerid, params[])
{
if(!IsAdmin(playerid) && !Player[playerid][Jun] && !Player[playerid][Mod])
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Komenda dost?pna tylko dla administratora.");
return 1;
}
new Text[255];
if(sscanf(params, "s[255]", Text))
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Wpisz: /say [tekst]");
return 1;
}
if(Announce)
HideAnnounce();
ShowAnnounce(Text);
return 1;
}
Wysłany: 2013-09-11, 23:55
IgrexolonO
Wiek: 34 Na forum: 6810 dni Posty: 1386
Piwa : 1062
Kod: CMD:say(playerid, p[])
{
if(!IsAdmin(playerid) && !Player[playerid][Jun] && !Player[playerid][Mod]) return SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Komenda dost?pna tylko dla administratora."), true;
if(!p[0]) return SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Wpisz: /say [czas trwania] [tekst]"), true;
new _time[8], strfinded = strfind(p, " ");
if(strfinded == -1) return SendClientMessage(playerid, -1, " ›› |b??d| Nie poda?e? tre?ci announce'a!"), true;
strmid(_time, p, 0, strfinded);
SetTimer("@_rehideAnnounce", 1000*strval(_time), false);
if(Announce) HideAnnounce();
ShowAnnounce(p[strfinded+1]);
return true;
}
forward @_rehideAnnounce();
@_rehideAnnounce()
{
HideAnnounce();
return true;
}
Tagi: say :: (announce)
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: