Raised This Month: $ Target: $400
 0% 

Making an admin set something on someone...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Des12
Senior Member
Join Date: Jan 2005
Old 02-26-2006 , 16:24   Re: Making an admin set something on someone...
Reply With Quote #2

Code:
public admin_gravity(id) {     new name[32];     new player = cmd_target(id,player,4);         get_user_name(player,name,31);     if (!player)     {         console_print(id,"[Purchase Mod]: %s does not exist.",name);         return PLUGIN_HANDLED;     }         if (get_user_gravity(player) <= 200)     {         console_print(id,"[Purchase Mod]: %s already has gravity.",name);         return PLUGIN_HANDLED;     }     if (!is_user_alive(player))     {         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; }

Try that
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
 



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