Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:hair(playerid,params[])
- {
- new hair;
- if(sscanf(params,"i", hair))return SendClientMessage(playerid, red, "Usage: /hair [1 - 5]");
- if(hair > 5 || hair < 1)return SendClientMessage(playerid,red,"Select a hair style from 1 to 5.");
- if(hair == 1)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
- SetPlayerAttachedObject( playerid, 3, 18640, 2, 0.081841, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into afro!");
- }
- if(hair == 2)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
- SetPlayerAttachedObject( playerid, 3, 18975, 2, 0.128191, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into afro 2!");
- }
- if(hair == 3)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
- SetPlayerAttachedObject( playerid, 3, 19077, 2, 0.124588, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into police!");
- }
- if(hair == 4)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
- SetPlayerAttachedObject( playerid, 3, 19136, 2, 0.141113, 0.006911, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into a rockstar!");
- }
- if(hair == 5)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
- SetPlayerAttachedObject( playerid, 3, 19274, 2, 0.099879, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SendClientMessage(playerid,0x0080C0FF,"You changed your hair style into clown!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment