Raised This Month: $ Target: $400
 0% 

Showing results 1 to 9 of 9
Search took 0.00 seconds.
Search: Posts Made By: Exolent[jNr]
Forum: Code Snippets/Tutorials 02-17-2012, 09:49
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

What's wrong is they are on the same line without a semicolon (even the compiler says there should be a semicolon to separate them).

new AuthID[35] ; get_user_authid(id, AuthID, 34)

// of
...
Forum: Code Snippets/Tutorials 02-09-2012, 16:12
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

It means you need to have your costs dynamic and dependent upon the user's level, without using an array.

// get cost calculator
// level 0 = 0
// level 1 = X
// level 2 = X * 2
// example:...
Forum: Code Snippets/Tutorials 02-09-2012, 15:32
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

You can make with a define if you want.

Example


#define cost( %1 ) ( ( %1 * 5 ) / 2 )
Forum: Code Snippets/Tutorials 01-06-2012, 10:49
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

You could've at least posted the compile errors, but I got it fixed anyway.

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <nvault>

#define MAXCLASSES...
Forum: Code Snippets/Tutorials 01-05-2012, 14:28
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

Change
public eDeath( )
{
new iVictim = read_data( 2 )
new headshot = read_data( 3 )
new clip, ammo, weapon = get_user_weapon(id,clip,ammo);
to
public eDeath( )
{
new...
Forum: Code Snippets/Tutorials 01-05-2012, 12:06
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

1 = killer
2 = victim
3 = headshot
4 = weapon
Forum: Code Snippets/Tutorials 01-05-2012, 11:33
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

No. The killer is the 1st data, and the victim is the 2nd data.
Forum: Code Snippets/Tutorials 06-16-2011, 10:02
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

This should be your death function:
public eDeath( )
{
new attacker = read_data( 1 )
new iVictim = read_data( 2 )

if(attacker == iVictim || !is_user_connected(attacker) ||...
Forum: Code Snippets/Tutorials 02-01-2008, 19:29
Replies: 292
Views: 157,725
Posted By Exolent[jNr]
Re: New XP Mod tutorial

i read a little part, and your knife and hs pcvars are swapped :S
Showing results 1 to 9 of 9

 
Forum Jump

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


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