/announce and pickups - 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: /announce and pickups (
/showthread.php?tid=116699)
/announce and pickups -
shoru93 - 29.12.2009
So ive created a pickup, but when i enter in it says " press /enter if you want to entry" or something like.
And im using mAdmin, when I type /announce my game is closing.
dcmd_announce(playerid, params[])
{
new pName[24], str[128];
if(PlayerInfo[playerid][AdminLevel] < 1) return false;
GetPlayerName(playerid, pName, sizeof(pName));
if(!strlen(params)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /announce [message]");
SendClientMessageToAll(COLOR_BRIGHTRED, "-------------------------");
SendClientMessageToAll(COLOR_YELLOW, params);
SendClientMessageToAll(COLOR_BRIGHTRED, "-------------------------");
format(str, sizeof(str), "Mod Message: %s (ID: %d) has announced: '%s'.", pName, playerid);
SendModMsg(COLOR_WHITE, str);
return 1;
}
Re: /announce and pickups -
shoru93 - 29.12.2009
?
Re: /announce and pickups -
M4S7ERMIND - 29.12.2009
Announce fixed:
Код:
format(str, sizeof(str), "Mod Message: %s (ID: %d) has announced: '%s'.", pName, playerid, params)
SendModMsg(COLOR_WHITE, str);