Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CubeifyChar(Ped ped){
- if(DOES_CHAR_EXIST(ped)){
- uint cubes[6],rand;
- Object otmp;
- cubes[0] = 0x2718C626;
- cubes[1] = 0xDD28B247;
- cubes[2] = 0xCCEA11CA;
- cubes[3] = 0xBB1F6E71;
- cubes[4] = 0xA6E545FD;
- cubes[5] = 0x5C5030D4;
- GENERATE_RANDOM_INT_IN_RANGE(0,5,&rand);
- CREATE_OBJECT(cubes[rand],0.0,0.0,0.0,&otmp,true);
- ATTACH_OBJECT_TO_PED(otmp,ped,0x4B5,0.0,0.0,0.0,0.0,0.0,3.0,false);
- WAIT(10);
- MARK_OBJECT_AS_NO_LONGER_NEEDED(&otmp); //Free up some memory ;)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment