Raised This Month: $ Target: $400
 0% 

Making an admin set something on someone...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 02-26-2006 , 14:23   Making an admin set something on someone...
Reply With Quote #1

Hey, I was just wondering how I would get an admin to set gravity on a user...

This is what I have, but I get errors about the cmd_target and the !player, is_user_alive...
Code:
public admin_gravity(id) {     new name[32];     new player = cmd_target(id);     if (!player)     {         console_print(id,"[Purchase Mod]: %s does not exist.",name);         return PLUGIN_HANDLED;     }     get_user_name(player,name,31);     if (get_user_gravity(player) <= 200)     {         console_print(id,"[Purchase Mod]: %s already has gravity.",name);         return PLUGIN_HANDLED;     }     if (player,!is_user_alive)     {         console_print(id,"[Purchase Mod]: %s is not alive.",name);         return PLUGIN_HANDLED;     }     if (get_user_gravity(player) == 800)     {         set_user_gravity(player,0.25);         console_print(id,"[Purchase Mod]: %s has received low gravity.",name);         return PLUGIN_HANDLED;     }     return PLUGIN_HANDLED; }
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
 



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 20:27.


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