Raised This Month: $ Target: $400
 0% 

Solved Freeze VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 11-08-2021 , 17:00   Freeze VIP
Reply With Quote #1

Hello,
I need a plugin that, being the VIP when entering the VIP rescue area, prohibits you from moving or jumping, only moving the camera (although if it is complicated, I prefer that only the player remains static)

Last edited by SoulWeaver16; 11-09-2021 at 09:28. Reason: The plugin you were looking for
SoulWeaver16 is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 11-09-2021 , 05:16   Re: Freeze VIP
Reply With Quote #2

Code:
#include <amxmodx> #include <fakemeta> #include <cstrike> #include <hamsandwich> #define VIP_TASKID 33918 public plugin_init() {     RegisterHam(Ham_Spawn, "player", "fw_HamPlayerSpawnPost", 1) } public fw_HamPlayerSpawnPost(id) {     set_pev( id, pev_flags, pev( id, pev_flags ) & ~ FL_FROZEN ) ;     if(cs_get_user_vip(id)) {         set_task(0.5, "CheckVIPZone", id + VIP_TASKID, .flags="b");     } } public CheckVIPZone(taskid) {     new id = taskid - VIP_TASKID     if(cs_get_user_mapzones(id) & CS_MAPZONE_VIP_SAFETY) {         set_pev(id, pev_flags, pev(id, pev_flags) | FL_FROZEN)         remove_task(id);     } }
ZaX is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 11-09-2021 , 09:27   Re: Freeze VIP
Reply With Quote #3

Quote:
Originally Posted by ZaX View Post
Code:
#include <amxmodx> #include <fakemeta> #include <cstrike> #include <hamsandwich> #define VIP_TASKID 33918 public plugin_init() {     RegisterHam(Ham_Spawn, "player", "fw_HamPlayerSpawnPost", 1) } public fw_HamPlayerSpawnPost(id) {     set_pev( id, pev_flags, pev( id, pev_flags ) & ~ FL_FROZEN ) ;     if(cs_get_user_vip(id)) {         set_task(0.5, "CheckVIPZone", id + VIP_TASKID, .flags="b");     } } public CheckVIPZone(taskid) {     new id = taskid - VIP_TASKID     if(cs_get_user_mapzones(id) & CS_MAPZONE_VIP_SAFETY) {         set_pev(id, pev_flags, pev(id, pev_flags) | FL_FROZEN)         remove_task(id);     } }
Thank you very much ZaX
It fulfills its function but does not fix the error I have, I thought that now it would work
Sorry for the inconvenience
SoulWeaver16 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:36.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode