Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- // Name: PM System //
- // Author: Rapha3L //
- // Script Version: 1.0 //
- // Last Update: 12-06-2013 //
- ////////////////////////////////////////////////////////////////////////////////
- //---[Includes]---//
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- //---[Colors]---//
- #define GOLD 0xFFD700AA
- #define GREEN 0x228B22AA
- #define BLUE 0x1E90FFAA
- #define ORANGE 0xFF8C00AA
- //---[Strings]---//
- new String[256];
- new ID;
- //---[Command]---//
- CMD:pm(playerid, params[])
- {
- new msg[128];
- if(sscanf(params, "us", ID, msg)) return SendClientMessage(playerid, BLUE, "Use: {FFFF00}/pm [id] [Message]");
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, ORANGE, "Invalid [ID]");
- format(String, sizeof(String), "{A52A2A}(PM From {1E90FF}[%s]{A52A2A}) {FF8C00}: {FFD700}%s.", nome(playerid), msg);
- SendClientMessage(ID, GOLD, String);
- format(String, sizeof(String), "{A52A2A}(PM To {1E90FF}[%s]{A52A2A}) {FF8C00}: {FFD700}%s.", nome(playerid), msg);
- SendClientMessage(playerid, GOLD, String);
- return 1;
- }
- stock nome(playerid)
- {
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, 24);
- return pname;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement