I need help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need help (
/showthread.php?tid=117636)
I need help -
sggassasin - 01.01.2010
Hi there i need a way so that i can go /announce [Hi There]
all i nned is the command so that when i type that is gose into a word named text and dose the following ...
format( string, sizeof(string), "%s", text );
GameTextForAll( string, 5000, 3 );
Re: I need help -
cigo - 01.01.2010
i think this cmd is in xtreme admin
Re: I need help -
KnooL - 01.01.2010
pawn Код:
dcmd_announce(playerid,params[])
{
new textm[64];
if(sscanf(params,"s",textm)) {
SendClientMessage(playerid,GREEN,"[USAGE] /announce [TEXT]");
}
else {
new mstring[128];
format(mstring,sizeof(mstring),"[ANOUNCEMENT] %s",textm);
GameTextForAll(mstring,5000,3);
}
return 1;
}
Re: I need help -
sggassasin - 02.01.2010
im not useing dcmd im useing the cmdtest 1
Re: I need help -
MadeMan - 02.01.2010
pawn Код:
if(strcmp(cmdtext, "/announce", true, 9) == 0)
{
GameTextForAll(cmdtext[10], 5000, 3);
return 1;
}