Raised This Month: $ Target: $400
 0% 

[REQ] Player Kill Get Points


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 04-28-2020 , 15:05   [REQ] Player Kill Get Points
Reply With Quote #1

I want a plugin. When a player kills someone, he receives 2 "points" ( "Points" are saved )

If possible, do this on the plugin below
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <points>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

#define HUD    1574

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""ShowHud"1)
}

public 
ShowHud(id);
{
    
id -= HUD;
    
    new 
iPoints Collector_GetPlayerPoints(id);
    
    
set_hudmessage(010400.010.5506.01.0);
    
show_hudmessage(id"Your Points : %d"iPoints);
    
    
set_task(0.0"ShowHud"id HUD);

points.inc
PHP Code:
native Collector_GetPlayerPoints(id);
native Collector_SetPlayerPoints(idcount); 
:

Last edited by alferd; 04-28-2020 at 15:06.
alferd 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 02:26.


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