Advertisement
noahfallon

NoahF's Skin Change Announcer v1.0

Aug 31st, 2012
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.50 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. #define green 0x33AA33AA
  3. #include <ncbs>
  4. #include <a_samp>
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.     print("**************************************************************************");
  9.     print(" NoahF's Skin Change Announcer has loaded without any problems.");
  10.     print("**************************************************************************");
  11.     return 1;
  12. }
  13. public OnFilterScriptExit()
  14. {
  15.     print("**************************************************************************");
  16.     print("NoahF's Skin Change Announcer has unloaded without any problems.");
  17.     print("**************************************************************************");
  18.     return 1;
  19. }
  20. public OnPlayerSkinChange(playerid, oldskin, newskin)
  21. {
  22.     new string[128];
  23.     format(string, sizeof(string), "%s has changed their skin to ID number %d!", pName(playerid), newskin);
  24.     SendClientMessageToAll(green, string);
  25.     return 1;
  26. }
  27.  
  28. stock pName(playerid)
  29. {
  30.     new Name[24];
  31.     GetPlayerName(playerid, Name, 24);
  32.     return Name;
  33. }
  34.  
  35. /*
  36. --------------------------------------------------------------------------------------------------------------------
  37. NoahF's Skin Change Announcer was made on 8/24/2012. Please don't remove the credits!
  38. Feel free to post constructive criticism in a reply to this forum topic! :)
  39. Thanks to BigETI for the NCBS include.
  40. Thanks to iGetty for the pName stock idea.
  41. ----------------------------------------------------END OF CREDITS--------------------------------------------------
  42. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement