Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- CMD:ann(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid, 0xFF0000FF, "Nie masz uprawnień");
- new time, msg[100];
- if(sscanf(params, "is[100]", time, msg))
- return SendClientMessage(playerid, 0xFFFFFFFF, "/ann [czas] [text]");
- format(params, 100, "~w~%s: %s", PlayerName(playerid), msg);
- GameTextForAll(params, (time * 1000), 3);
- return 1;
- }
- stock PlayerName(playerid)
- {
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- return pname;
- }
Advertisement
Add Comment
Please, Sign In to add comment