Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ********************************************************************************
- Special Skin By JohnnyYz
- Credits JohnnyYz
- WebSite: www.necro-zone.com | www.rss-ro.com
- ********************************************************************************
- */
- #include " a_samp "
- #include " zcmd "
- #include " sscanf2 "
- //******************************************************************************
- new Text:SSkin [ 10 ];
- new Holds [ 20 ];
- //******************************************************************************
- AntiDeAMX()
- {
- new a[][] =
- {
- "Unarmed (Fist)",
- "Brass K"
- };
- #pragma unused a
- }
- //******************************************************************************
- public OnFilterScriptInit()
- {
- AntiDeAMX();
- SSkin [ 0 ] = TextDrawCreate(527.599914, 176.966644, "Skin_Box");
- TextDrawLetterSize(SSkin [ 0 ], 0.000000, 12.791481);
- TextDrawTextSize(SSkin [ 0 ], 131.600021, 0.000000);
- TextDrawAlignment(SSkin [ 0 ], 1);
- TextDrawColor(SSkin [ 0 ], -1378294017);
- TextDrawUseBox(SSkin [ 0 ], true);
- TextDrawBoxColor(SSkin [ 0 ], 94);
- TextDrawSetShadow(SSkin [ 0 ], 0);
- TextDrawSetOutline(SSkin [ 0 ], 0);
- TextDrawBackgroundColor(SSkin [ 0 ], 16777215);
- TextDrawFont(SSkin [ 0 ], 0);
- SSkin [ 1 ] = TextDrawCreate(160.800033, 272.533264, "Skin 230");
- TextDrawLetterSize(SSkin [ 1 ], 0.449999, 1.600000);
- TextDrawTextSize(SSkin [ 1 ], -873.599914, -210.559967);
- TextDrawAlignment(SSkin [ 1 ], 1);
- TextDrawColor(SSkin [ 1 ], -1);
- TextDrawSetShadow(SSkin [ 1 ], 0);
- TextDrawSetOutline(SSkin [ 1 ], 1);
- TextDrawBackgroundColor(SSkin [ 1 ], 51);
- TextDrawFont(SSkin [ 1 ], 1);
- TextDrawSetProportional(SSkin [ 1 ], 1);
- SSkin [ 2 ] = TextDrawCreate(129.599914, 170.986526, "230");
- TextDrawLetterSize(SSkin [ 2 ], 0.449999, 1.600000);
- TextDrawTextSize(SSkin [ 2 ], 128.800003, 106.773330);
- TextDrawAlignment(SSkin [ 2 ], 1);
- TextDrawColor(SSkin [ 2 ], -1);
- TextDrawUseBox(SSkin [ 2 ], true);
- TextDrawBackgroundColor(SSkin [ 2 ], 0);
- TextDrawBoxColor(SSkin [ 2 ], 0);
- TextDrawSetShadow(SSkin [ 2 ], 0);
- TextDrawSetOutline(SSkin [ 2 ], 1);
- TextDrawFont(SSkin [ 2 ], 5);
- TextDrawSetProportional(SSkin [ 2 ], 1);
- TextDrawSetPreviewModel(SSkin [ 2 ], 230);
- TextDrawSetPreviewRot(SSkin [ 2 ], 0.000000, 0.000000, 0.000000, 1.000000);
- SSkin [ 3 ] = TextDrawCreate(289.599822, 271.786834, "Skin 170");
- TextDrawLetterSize(SSkin [ 3 ], 0.449999, 1.600000);
- TextDrawAlignment(SSkin [ 3 ], 1);
- TextDrawColor(SSkin [ 3 ], -1);
- TextDrawSetShadow(SSkin [ 3 ], 0);
- TextDrawSetOutline(SSkin [ 3 ], 1);
- TextDrawBackgroundColor(SSkin [ 3 ], 51);
- TextDrawFont(SSkin [ 3 ], 1);
- TextDrawSetProportional(SSkin [ 3 ], 1);
- SSkin [ 4 ] = TextDrawCreate(264.799987, 173.973297, "170");
- TextDrawLetterSize(SSkin [ 4 ], 0.449999, 1.600000);
- TextDrawTextSize(SSkin [ 4 ], 109.599967, 97.813423);
- TextDrawAlignment(SSkin [ 4 ], 1);
- TextDrawColor(SSkin [ 4 ], -1);
- TextDrawUseBox(SSkin [ 4 ], true);
- TextDrawBackgroundColor(SSkin [ 4 ], 0);
- TextDrawBoxColor(SSkin [ 4 ], 0);
- TextDrawSetShadow(SSkin [ 4 ], 0);
- TextDrawSetOutline(SSkin [ 4 ], 1);
- TextDrawFont(SSkin [ 4 ], 5);
- TextDrawSetProportional(SSkin [ 4 ], 1);
- TextDrawSetPreviewModel(SSkin [ 4 ], 170);
- TextDrawSetPreviewRot(SSkin [ 4 ], 0.000000, 0.000000, 0.000000, 1.000000);
- SSkin [ 5 ] = TextDrawCreate(432.000152, 272.533294, "Stop Hold");
- TextDrawLetterSize(SSkin [ 5 ], 0.449999, 1.600000);
- TextDrawAlignment(SSkin [ 5 ], 1);
- TextDrawColor(SSkin [ 5 ], -1);
- TextDrawSetShadow(SSkin [ 5 ], 0);
- TextDrawSetOutline(SSkin [ 5 ], 1);
- TextDrawBackgroundColor(SSkin [ 5 ], 51);
- TextDrawFont(SSkin [ 5 ], 1);
- TextDrawSetProportional(SSkin [ 5 ], 1);
- SSkin [ 6 ] = TextDrawCreate(400.000152, 173.973220, "176");
- TextDrawLetterSize(SSkin [ 6 ], 0.449999, 1.600000);
- TextDrawTextSize(SSkin [ 6 ], 121.599960, 99.306655);
- TextDrawAlignment(SSkin [ 6 ], 1);
- TextDrawColor(SSkin [ 6 ], -1);
- TextDrawUseBox(SSkin [ 6 ], true);
- TextDrawBackgroundColor(SSkin [ 6 ], 0);
- TextDrawBoxColor(SSkin [ 6 ], 0);
- TextDrawSetShadow(SSkin [ 6 ], 0);
- TextDrawSetOutline(SSkin [ 6 ], 1);
- TextDrawFont(SSkin [ 6 ], 5);
- TextDrawSetProportional(SSkin [ 6 ], 1);
- TextDrawSetPreviewModel(SSkin [ 6 ], 176);
- TextDrawSetPreviewRot(SSkin [ 6 ], 0.000000, 0.000000, 0.000000, 1.000000);
- //******************************************************************************
- TextDrawSetSelectable(SSkin [ 1 ], false);
- TextDrawSetSelectable(SSkin [ 2 ], true);
- TextDrawSetSelectable(SSkin [ 3 ], true);
- TextDrawSetSelectable(SSkin [ 4 ], true);
- TextDrawSetSelectable(SSkin [ 5 ], true);
- TextDrawSetSelectable(SSkin [ 6 ], true);
- //******************************************************************************
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawDestroy(SSkin [ 0 ]);
- TextDrawDestroy(SSkin [ 1 ]);
- TextDrawDestroy(SSkin [ 2 ]);
- TextDrawDestroy(SSkin [ 3 ]);
- TextDrawDestroy(SSkin [ 4 ]);
- TextDrawDestroy(SSkin [ 5 ]);
- TextDrawDestroy(SSkin [ 6 ]);
- return 1;
- }
- //******************************************************************************
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(_:clickedid != 65535)
- {
- if(clickedid == SSkin [ 2 ])
- {
- Holds [ 0 ] = SetPlayerAttachedObject(playerid, 0, 355, 1, -0.165000, -0.109999, 0.085000, 5.899998, 37.900001, -4.200002, 1.000000, 1.000000, 1.000000, 0, 0);
- Holds [ 1 ] = SetPlayerAttachedObject(playerid, 1, 19079, 1, 0.289000, -0.045999, 0.168000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000, 0, 0);
- Holds [ 2 ] = SetPlayerAttachedObject(playerid, 2, 19315, 1, -0.816000, 0.000000, 0.493000, 90.799987, 86.199974, -0.399999, 1.000000, 1.000000, 1.000000, 0, 0);
- Holds [ 3 ] = SetPlayerAttachedObject(playerid, 3, 18688, 1, -0.813999, -0.027999, -1.673000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000, 0, 0);
- HideSSkin( playerid );
- SetPlayerSkin(playerid, 230);
- }
- if(clickedid == SSkin [ 4 ])
- {
- Holds [ 4 ] = SetPlayerAttachedObject(playerid, 0, 19314, 1, 0.173999, -0.163999, 0.000000, 0.000000, 0.000000, -152.200027, 1.000000, 1.000000, 1.000000, 0, 0);
- Holds [ 5 ] = SetPlayerAttachedObject(playerid, 1, 19320, 1, 0.536999, 0.000000, 0.000000, -102.700012, 92.299995, 25.499996, 1.000000, 1.000000, 1.000000, 0, 0);
- Holds [ 6 ] = SetPlayerAttachedObject(playerid, 2, 359, 1, 0.546000, 0.000000, 0.222000, 77.899986, 85.200027, 0.000000, 0.890000, 1.090999, 0.917999, 0, 0);
- Holds [ 7 ] = SetPlayerAttachedObject(playerid, 3, 18689, 1, -0.533000, 0.000000, -0.119000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0, 0);
- HideSSkin( playerid );
- SetPlayerSkin(playerid, 170);
- }
- if(clickedid == SSkin [ 6 ])
- {
- Holds [ 8 ] = SetPlayerAttachedObject(playerid, 0, 18693, 1, -2.028999, 0.126000, -0.595999, 11.499996, 81.700004, 0.000000, 1.000000, 1.000000, 1.000000, 0, 0);
- Holds [ 9 ] = SetPlayerAttachedObject(playerid, 1, 18693, 1, -1.991999, 0.222000, 0.026000, 11.499996, 81.700004, 0.000000, 1.000000, 1.000000, 1.000000, 0, 0);
- Holds [ 10 ] = SetPlayerAttachedObject(playerid, 2, 349, 1, 0.000000, -0.164000, -0.013999, 0.000000, 26.099994, 0.000000, 1.000000, 1.000000, 1.000000, 0, 0);
- Holds [ 11 ] = SetPlayerAttachedObject(playerid, 3, 19343, 1, -1.033999, 0.083000, -0.063000, 0.000000, 93.399993, -27.699998, 1.464999, 1.299999, 1.186999, 0, 0);
- HideSSkin( playerid );
- SetPlayerSkin(playerid, 176);
- }
- if(clickedid == SSkin [ 5 ])
- {
- HideSSkin( playerid );
- RemoveHolds( playerid );
- SetPlayerSkin(playerid, 176);
- }
- }
- return 1;
- }
- //******************************************************************************
- COMMAND:sskin(playerid, params[])
- {
- ShowSSkin( playerid );
- return 1;
- }
- //******************************************************************************
- stock ShowSSkin( playerid )
- {
- TextDrawShowForPlayer(playerid,SSkin [ 0 ]);
- TextDrawShowForPlayer(playerid,SSkin [ 2 ]);
- TextDrawShowForPlayer(playerid,SSkin [ 4 ]);
- TextDrawShowForPlayer(playerid,SSkin [ 5 ]);
- TextDrawShowForPlayer(playerid,SSkin [ 6 ]);
- //******************************************************************************
- SelectTextDraw(playerid, 0x91B5BAFF);
- return 1;
- }
- //******************************************************************************
- stock HideSSkin( playerid )
- {
- TextDrawHideForPlayer(playerid,SSkin [ 0 ]);
- TextDrawHideForPlayer(playerid,SSkin [ 1 ]);
- TextDrawHideForPlayer(playerid,SSkin [ 2 ]);
- TextDrawHideForPlayer(playerid,SSkin [ 3 ]);
- TextDrawHideForPlayer(playerid,SSkin [ 4 ]);
- TextDrawHideForPlayer(playerid,SSkin [ 5 ]);
- TextDrawHideForPlayer(playerid,SSkin [ 6 ]);
- CancelSelectTextDraw(playerid);
- return 1;
- }
- //******************************************************************************
- stock RemoveHolds( playerid )
- {
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- }
- return 1;
- }
- //******************************************************************************
- stock SetPlayerSkinFix(playerid, skinid)
- {
- new
- Float:tmpPos[4],
- vehicleid = GetPlayerVehicleID(playerid),
- seatid = GetPlayerVehicleSeat(playerid);
- GetPlayerPos(playerid, tmpPos[0], tmpPos[1], tmpPos[2]);
- GetPlayerFacingAngle(playerid, tmpPos[3]);
- if(skinid < 0 || skinid > 299) return 0;
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK)
- {
- SetPlayerPos(playerid, tmpPos[0], tmpPos[1], tmpPos[2]);
- SetPlayerFacingAngle(playerid, tmpPos[3]);
- TogglePlayerControllable(playerid, 1);
- return SetPlayerSkin(playerid, skinid);
- }
- else if(IsPlayerInAnyVehicle(playerid))
- {
- new
- tmp;
- RemovePlayerFromVehicle(playerid);
- SetPlayerPos(playerid, tmpPos[0], tmpPos[1], tmpPos[2]);
- SetPlayerFacingAngle(playerid, tmpPos[3]);
- TogglePlayerControllable(playerid, 1);
- tmp = SetPlayerSkin(playerid, skinid);
- PutPlayerInVehicle(playerid, vehicleid, (seatid == 128) ? 0 : seatid);
- return tmp;
- }
- else
- {
- return SetPlayerSkin(playerid, skinid);
- }
- }
- /*
- ********************************************************************************
- Special Skin By JohnnyYz
- Credits JohnnyYz
- WebSite: www.necro-zone.com | www.rss-ro.com
- ********************************************************************************
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement