Raised This Month: $ Target: $400
 0% 

exp for UWC3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-11-2006 , 00:07   exp for UWC3
Reply With Quote #1

i am trying to create a plugin that will (on client connection) add 15 levels (UWC3 mod btw) to a player's level if they are below the level of 15, can someone please let me know of the PAWN comand used to give exp, or levels?
I read through the UWC3.sma and includes and i think this MIGHT work
Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" public plugin_init() {  register_plugin("free level 15", "1.0", "Rolnaaba") } public client_connect(id) {  if(playerxp < AMOUNT_HERE)  {   new MOD = "UWC3"   new players[32], inum   get_players(players,inum)   for(new a=0;a<inum;++a)   {    client_print(players[a], print_chat,    "[%s] The admin gave you %d experience",MOD, str_to_num(xp))    playerxp[players[a]]+=str_to_num(xp)    displaylevel(players[a],1)   }  } }
(of corse i didnt define many vaiables used in here, want to find out if this would work or not first)
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 07-11-2006 at 01:07.
Rolnaaba is offline
Des12
Senior Member
Join Date: Jan 2005
Old 07-11-2006 , 10:33   Re: exp for UWC3
Reply With Quote #2

Your current script gives everyone 15 levels when someone connects, this will make only the connecting player get 15 levels:

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" public plugin_init() {  register_plugin("free level 15", "1.0", "Rolnaaba") } public client_connect(id) {  if(playerxp[id] < AMOUNT_HERE)  {   new MOD = "UWC3"   client_print(id, print_chat,   "[%s] The admin gave you %d experience",MOD, str_to_num(xp))    playerxp[id]+=str_to_num(xp)    displaylevel(id,1)   }   }

Course this script won't work without being in the main WC3 connect function unless you want to push variables from plugin to plugin.
__________________
-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
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-11-2006 , 10:42   Re: exp for UWC3
Reply With Quote #3

Thanks man, +karma fo jo ;)
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Ghandi Pwnage
Junior Member
Join Date: Apr 2006
Old 07-16-2006 , 14:13   Re: exp for UWC3
Reply With Quote #4

is there just a plugin for this?
Ghandi Pwnage is offline
Reply



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 07:57.


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