Face9000

[Face9000] Simple Hair System

Jul 12th, 2015
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.07 KB | None | 0 0
  1. CMD:hair(playerid,params[])
  2. {
  3.             new hair;
  4.         if(sscanf(params,"i", hair))return SendClientMessage(playerid, red, "Usage: /hair [1 - 5]");
  5.         if(hair > 5 || hair < 1)return SendClientMessage(playerid,red,"Select a hair style from 1 to 5.");
  6.         if(hair == 1)
  7.         {
  8.             if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
  9.             SetPlayerAttachedObject( playerid, 3, 18640, 2, 0.081841, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  10.             SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into afro!");
  11.         }
  12.         if(hair == 2)
  13.         {
  14.             if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
  15.             SetPlayerAttachedObject( playerid, 3, 18975, 2, 0.128191, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  16.             SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into afro 2!");
  17.         }
  18.         if(hair == 3)
  19.         {
  20.             if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
  21.             SetPlayerAttachedObject( playerid, 3, 19077, 2, 0.124588, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  22.             SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into police!");
  23.         }
  24.         if(hair == 4)
  25.         {
  26.             if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
  27.             SetPlayerAttachedObject( playerid, 3, 19136, 2, 0.141113, 0.006911, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  28.             SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into a rockstar!");
  29.         }
  30.         if(hair == 5)
  31.         {
  32.             if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
  33.             SetPlayerAttachedObject( playerid, 3, 19274, 2, 0.099879, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  34.             SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into clown!");
  35.         }
  36.         return 1;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment