OKStyle

Show Girls

Mar 13th, 2011
2,014
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2. // ShowGirls 1.1 by O.K.Style™
  3. public OnFilterScriptInit()
  4. {
  5.     ConnectNPC("ShowGirl_1","blank");
  6.     ConnectNPC("ShowGirl_2","blank");
  7.     ConnectNPC("ShowGirl_3","blank");
  8.     ConnectNPC("ShowGirl_4","blank");
  9.     return 1;
  10. }
  11. public OnPlayerSpawn(playerid)
  12. {
  13.     if(IsPlayerNPC(playerid))
  14.     {
  15.         new PlayerName[MAX_PLAYER_NAME];
  16.         GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  17.         if(strcmp(PlayerName, "ShowGirl_1", true) == 0)
  18.         {
  19.             SetPlayerColor(playerid, 0xF900D300);
  20.             SetPlayerInterior(playerid, 3);
  21.             SetPlayerPos(playerid, -2673.3816, 1410.4232, 907.5703);
  22.             SetPlayerFacingAngle(playerid, 270.0);
  23.             SetPlayerSkin(playerid, 178);
  24.         }
  25.         if(!strcmp(PlayerName,"ShowGirl_2",true))
  26.         {
  27.             SetPlayerColor(playerid,0xF900D3FF);
  28.             SetPlayerPos(playerid,-2678.1472,1410.2281,907.5703);
  29.             SetPlayerFacingAngle(playerid,270.0);
  30.             SetPlayerSkin(playerid,256);
  31.             SetPlayerInterior(playerid,3);
  32.         }
  33.         if(!strcmp(PlayerName,"ShowGirl_3",true))
  34.         {
  35.             SetPlayerColor(playerid,0xF900D3FF);
  36.             SetPlayerPos(playerid,-2678.1472,1414.5895,907.5703);
  37.             SetPlayerFacingAngle(playerid,270.0);
  38.             SetPlayerSkin(playerid,246);
  39.             SetPlayerInterior(playerid,3);
  40.         }
  41.         if(!strcmp(PlayerName,"ShowGirl_4",true))
  42.         {
  43.             SetPlayerColor(playerid,0xF900D3FF);
  44.             SetPlayerPos(playerid,-2678.1472,1405.8817,907.5703);
  45.             SetPlayerFacingAngle(playerid,270.0);
  46.             SetPlayerSkin(playerid,244);
  47.             SetPlayerInterior(playerid,3);
  48.         }
  49.     }
  50.     return 1;
  51. }
  52. public OnPlayerUpdate(playerid)
  53. {
  54.     if(IsPlayerNPC(playerid))
  55.     {
  56.         new PlayerName[MAX_PLAYER_NAME];
  57.         GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  58.         if(strcmp(PlayerName, "ShowGirl_1", true) == 0
  59.         || strcmp(PlayerName, "ShowGirl_2", true) == 0
  60.         || strcmp(PlayerName, "ShowGirl_3", true) == 0
  61.         || strcmp(PlayerName, "ShowGirl_4", true) == 0)
  62.         {
  63.             ApplyAnimation(playerid,"STRIP","strip_G",4.1,0,1,1,1,-1,1);
  64.         }
  65.     }
  66.     return 1;
  67. }
  68. public OnFilterScriptExit()
  69. {
  70.     for(new i, j = GetMaxPlayers(); i != j; ++i)
  71.     {
  72.         if(IsPlayerNPC(i))
  73.         {
  74.             new PlayerName[MAX_PLAYER_NAME];
  75.             GetPlayerName(i,PlayerName,sizeof(PlayerName));
  76.             if(strcmp(PlayerName, "ShowGirl_1", true) == 0
  77.             || strcmp(PlayerName, "ShowGirl_2", true) == 0
  78.             || strcmp(PlayerName, "ShowGirl_3", true) == 0
  79.             || strcmp(PlayerName, "ShowGirl_4", true) == 0)
  80.             {
  81.                 Kick(i);
  82.             }
  83.         }
  84.     }
  85.     return 1;
  86. }
RAW Paste Data