Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by araba ( 7 years ago )
#include <amxmodx>
#include <cstrike>
#define PLUGIN "CSGO Trail Grenade"
#define AUTHOR "Fatih ~ EjderYa"
#define VERSION "1.0"
#define CT_RENK_Kirmizi 0
#define CT_RENK_Yesil 130
#define CT_RENK_Mavi 191
new trail
public plugin_precache() trail = precache_model("sprites/smoke.spr")
public grenade_throw(id, bomba)
{
new Oyuncular[32] , Numara
get_players( Oyuncular , Numara , "bc" )
for ( new i ; i < Numara ; i++ ){
message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY , {0,0,0}, Oyuncular[i] )
write_byte(TE_BEAMFOLLOW)
write_short(bomba)
write_short(trail)
write_byte(500)
write_byte(1)
Takim_Rengi(id)
write_byte(225)
message_end()
}
}
public Takim_Rengi(id){
if ( cs_get_user_team(id) == CS_TEAM_T ){
write_byte(CT_RENK_Mavi)
write_byte(CT_RENK_Yesil)
write_byte(CT_RENK_Kirmizi)
}
else if ( cs_get_user_team(id) == CS_TEAM_CT ){
write_byte(CT_RENK_Kirmizi)
write_byte(CT_RENK_Yesil)
write_byte(CT_RENK_Mavi)
}
else
{
write_byte(120)
write_byte(120)
write_byte(120)
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n{\\ colortbl ;\\ red0\\ green0\\ blue0;}\n\\ viewkind4\\ uc1\\ pard\\ cf1\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
Revise this Paste