Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void FreezeProtection()
- {
- int ped;
- Vector3 c = GET_ENTITY_COORDS(_ID, 1);
- if (GET_CLOSEST_PED(&c, 5, 1, 1, &ped, 0, 1, -1))
- {
- if (GET_ENTITY_MODEL(ped) == GET_ENTITY_MODEL(_ID))
- {
- if (GET_PED_DRAWABLE_VARIATION(ped, Shirt) == GET_PED_DRAWABLE_VARIATION(_ID, Shirt) && GET_PED_TEXTURE_VARIATION(ped, Shirt) == GET_PED_TEXTURE_VARIATION(_ID, Shirt))
- {
- if (RequestLoop(ped))
- {
- if (DOES_ENTITY_EXIST(ped)){
- SET_ENTITY_AS_MISSION_ENTITY(ped, 0, 1);
- DELETE_PED(&ped);
- PrintMessage("Stopped freeze attempt");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement