Viteza Playeri

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
ang
Membru, skill +1
Membru, skill +1
Posts: 169
Joined: 14 Jan 2012, 18:39
Detinator Steam: Da
Detinator server CS: Da
Location: Africa
Has thanked: 37 times

03 Jan 2014, 20:48

Vreau un plugin pentru deathrun , la inceputul rundei sa scrie un mesaj hud sau in chat , "Toti playerii beneficiaza de viteza gratis" Si respectiv sa aiba toti playerii de pe server viteza 450. Multumesc
<a href="https://www.gametracker.com/server_info ... 3.4:27015/" target="_blank"><img src="http://cache.gametracker.com/server_inf ... 2E3226.png" border="0" width="350" height="20" alt=""/></a>
eXtreamSHOP
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

03 Jan 2014, 20:48

Ti-l fac acum , revin cu edit.
User avatar
Truth*
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 766
Joined: 11 Oct 2013, 10:08
Detinator Steam: Da
SteamID: Ezeru
Reputatie: Moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3
Fond eXtream: 0
Location: Sibiu
Has thanked: 44 times
Been thanked: 122 times
Contact:

03 Jan 2014, 20:57

Poftim :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"



public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam( Ham_Spawn, "player", "SpawnCMD", true)
	// Add your code here...
}


public SpawnCMD ( id ) {
	
	if( !is_user_bot(id) && is_user_alive(id) )
	{
	
	set_user_maxspeed(id, 450.0 )
	
	
	set_hudmessage(0, 255, 255, -1.0, 0.00, 0, 6.0, 12.0)
	show_hudmessage( 0, "Toti playerii beneficiaza de viteza gratis!")
	
	
	}
}
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.

If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
Cosmin
Fost moderator
Fost moderator
Posts: 9353
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

03 Jan 2014, 21:00

@Survivor foloseste curweapon,ca dupa ce schimba arma se duce viteza la cea default :)
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

03 Jan 2014, 21:02

| Afiseaza codul
#include <amxmodx>
#include <hamsandwich>
#include <fun>

#define PLUGIN "Free Speed"
#define AUTOR "GhosT ***"

new bool:speed[32];
new max_speed;
public plugin_init()
{
	register_plugin(PLUGIN, "1.0", AUTOR)
	
	RegisterHam(Ham_Spawn, "player", "spawn_player", 1)
	register_event("CurWeapon", "CurWeap", "be", "1=1")
	
	max_speed = register_cvar("max_speed", "450.0")
}
public spawn_player(id)
{
	if(is_user_alive(id))
	{
		speed[id] = true;
		CurWeap(id)
		set_hudmessage(0, 255, 0, -1.0, -1.0)
		show_hudmessage(id, "Toti playerii beneficiaza de viteza gratis !")
		
	}
}
public CurWeap(id)
{
	if(speed[id])
	{
		set_user_maxspeed(id, get_pcvar_float(max_speed))
	}
}
Cvar ca sa setezi speedu care sa-l primeasca jucatori e :

"max_speed"..

Cand il bagi in amx.cfg scrii cu zecimala..

Exemple :

max_speed "600.0"
max_speed "255.5"
Last edited by GhosT *** on 03 Jan 2014, 21:04, edited 1 time in total.
User avatar
Truth*
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 766
Joined: 11 Oct 2013, 10:08
Detinator Steam: Da
SteamID: Ezeru
Reputatie: Moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3
Fond eXtream: 0
Location: Sibiu
Has thanked: 44 times
Been thanked: 122 times
Contact:

03 Jan 2014, 21:03

M-am grabit ;)) Revin cu edit daca nu il face cineva inaintea mea ;))
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.

If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
User avatar
FaTzZu
Fost moderator
Fost moderator
Posts: 1207
Joined: 22 Dec 2012, 18:37
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 114 times
Been thanked: 168 times
Contact:

03 Jan 2014, 21:13

GhosT *** wrote:
| Afiseaza codul
#include <amxmodx>
#include <hamsandwich>
#include <fun>

#define PLUGIN "Free Speed"
#define AUTOR "GhosT ***"

new bool:speed[32];
new max_speed;
public plugin_init()
{
	register_plugin(PLUGIN, "1.0", AUTOR)
	
	RegisterHam(Ham_Spawn, "player", "spawn_player", 1)
	register_event("CurWeapon", "CurWeap", "be", "1=1")
	
	max_speed = register_cvar("max_speed", "450.0")
}
public spawn_player(id)
{
	if(is_user_alive(id))
	{
		speed[id] = true;
		CurWeap(id)
		set_hudmessage(0, 255, 0, -1.0, -1.0)
		show_hudmessage(id, "Toti playerii beneficiaza de viteza gratis !")
		
	}
}
public CurWeap(id)
{
	if(speed[id])
	{
		set_user_maxspeed(id, get_pcvar_float(max_speed))
	}
}
Cvar ca sa setezi speedu care sa-l primeasca jucatori e :

"max_speed"..

Cand il bagi in amx.cfg scrii cu zecimala..

Exemple :

max_speed "600.0"
max_speed "255.5"
De ce ai complicat pluginul cu o booleana?Cand in current weapon puteai verifica doar daca playerul este viu ;)
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.

#RETIRED.
ang
Membru, skill +1
Membru, skill +1
Posts: 169
Joined: 14 Jan 2012, 18:39
Detinator Steam: Da
Detinator server CS: Da
Location: Africa
Has thanked: 37 times

04 Jan 2014, 21:24

Multumec Ghost ! Multumesc la toti
<a href="https://www.gametracker.com/server_info ... 3.4:27015/" target="_blank"><img src="http://cache.gametracker.com/server_inf ... 2E3226.png" border="0" width="350" height="20" alt=""/></a>
Post Reply

Return to “Cereri”

  • Information