Raised This Month: $51 Target: $400
 12% 

[CSS][Surf] Redie


Post New Thread Reply   
 
Thread Tools Display Modes
Semajnad
Junior Member
Join Date: Feb 2012
Old 04-04-2012 , 05:18   Re: [CSS][Surf] Redie
Reply With Quote #111

I've seen this plugin on many other servers and would love to download it for mine. When I click 'Get Plugin' I get this message.

"Plugin failed to compile! Please try contacting the author."

Thanks for creating this, very useful for surf servers,
-Semajnad
Semajnad is offline
rambomst
SourceMod Donor
Join Date: Nov 2009
Location: Sydney, Australia
Old 04-04-2012 , 06:00   Re: [CSS][Surf] Redie
Reply With Quote #112

Download redie.smx and use that.
__________________
rambomst is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 05-10-2012 , 04:58   Re: [CSS][Surf] Redie
Reply With Quote #113

Hi,

I use this Plugin for my surf server and it works fine.

But if i change something in the redie.sp (i want to translate the plugin to German) there are no changes on the server.

Can you help me with this Problem?

(Sorry for my bad English ;)
mariozankl is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 05-10-2012 , 05:01   Re: [CSS][Surf] Redie
Reply With Quote #114

Nice Plugin.

The funniest thing was when i was using it in deathrun server, On deathrun_marioworld, because its making a noise everytime somebody's fall .
__________________
retired
shavit is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 05-10-2012 , 05:02   Re: [CSS][Surf] Redie
Reply With Quote #115

Quote:
Originally Posted by mariozankl View Post
Hi,

I use this Plugin for my surf server and it works fine.

But if i change something in the redie.sp (i want to translate the plugin to German) there are no changes on the server.

Can you help me with this Problem?

(Sorry for my bad English ;)
You have to compile the plugin and place it in "plugins" folder.
Also on your "scripting" folder make sure you have sdkhooks includes.
__________________
retired

Last edited by shavit; 05-10-2012 at 05:02.
shavit is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 05-10-2012 , 05:46   Re: [CSS][Surf] Redie
Reply With Quote #116

Quote:
Originally Posted by shavit View Post
You have to compile the plugin and place it in "plugins" folder.
Also on your "scripting" folder make sure you have sdkhooks includes.
I think you don't understand what i mean.

The plugin works fine on my server and i can use !redie without problems.

But i want to translare the Plugin into German besause my Serverlanguage is German.

I have edited the redie.sp (from the scripting Folder)

Quote:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <sdkhooks>

#pragma semicolon 1

#define PLUGIN_VERSION "1.3"

new blockCommand;
new g_Collision;
new Handle:cvar_adverts = INVALID_HANDLE;
new bool:g_IsGhost[MAXPLAYERS+1];

public Plugin:myinfo =
{
name = "Redie 4 SourceMod",
author = "MeoW",
description = "Return as a ghost after you died.",
version = PLUGIN_VERSION,
url = "http://www.trident-gaming.net/"
};

public OnPluginStart()
{
HookEvent("round_end", Event_Round_End, EventHookMode_Pre);
HookEvent("round_start", Event_Round_Start, EventHookMode_Pre);
HookEvent("player_spawn", Event_Player_Spawn);
HookEvent("player_death", Event_Player_Death);
RegConsoleCmd("sm_redie", Command_Redie);
CreateTimer(120.0, advert, _,TIMER_REPEAT);
CreateConVar("sm_redie_version", PLUGIN_VERSION, "Redie Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FC VAR_NOTIFY);
cvar_adverts = CreateConVar("sm_redie_adverts", "0", "If enabled, redie will produce an advert every 2 minutes.");
g_Collision = FindSendPropInfo("CBaseEntity", "m_CollisionGroup");
}

public OnClientPutInServer(client)
{
SDKHook(client, SDKHook_WeaponCanUse, OnWeaponCanUse);
}

public OnClientPostAdminCheck(client)
{
g_IsGhost[client] = false;
}

public Action:Event_Round_End(Handle:event, const String:name[], bool:dontBroadcast)
{
blockCommand = false;
}

public Action:Event_Round_Start(Handle:event, const String:name[], bool:dontBroadcast)
{
blockCommand = true;
}


public Action:Event_Player_Spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if(g_IsGhost[client])
{
SetEntProp(client, Prop_Send, "m_nHitboxSet", 2);
g_IsGhost[client] = false;
}
else
{
SetEntProp(client, Prop_Send, "m_nHitboxSet", 0);
}
}

public Action:Event_Player_Death(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
PrintToChat(client, "\x01[\x03Redie\x01] \x04Schreibe !redie in den Chat um als Geist weiter zu spielen.");
}

public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{
if(GetEntProp(client, Prop_Send, "m_lifeState") == 1)
{
buttons &= ~IN_USE;
}
return Plugin_Continue;
}

public Action:Command_Redie(client, args)
{
if(blockCommand)
{
if (!IsPlayerAlive(client))
{
if(GetClientTeam(client) > 1)
{
g_IsGhost[client] = true;
CS_RespawnPlayer(client);
new weaponIndex;
for (new i = 0; i <= 3; i++)
{
if ((weaponIndex = GetPlayerWeaponSlot(client, i)) != -1)
{
RemovePlayerItem(client, weaponIndex);
RemoveEdict(weaponIndex);
}
}
SetEntProp(client, Prop_Send, "m_lifeState", 1);
SetEntData(client, g_Collision, 2, 4, true);
PrintToChat(client, "\x01[\x03Redie\x01] \x04Du bist jetzt ein Geist.");
}
else
{
PrintToChat(client, "\x01[\x03Redie\x01] \x04Du musst in einem Team sein.");
}
}
else
{
PrintToChat(client, "\x01[\x03Redie\x01] \x04Du musst tot sein um !redie zu verwenden.");
}
}
else
{
PrintToChat(client, "\x01[\x03Redie\x01] \x04Bitte warte auf die nächste Runde.");
}
return Plugin_Handled;
}

public Action:OnWeaponCanUse(client, weapon)
{
if(GetEntProp(client, Prop_Send, "m_lifeState") == 1)
return Plugin_Handled;

return Plugin_Continue;
}

public Action:advert(Handle:timer)
{
if(GetConVarInt(cvar_adverts))
{
PrintToChatAll ("\x01[\x03Redie\x01] \x04Dieser Server enthällt !redie.");
}
return Plugin_Continue;
}
(modifications are Bold)

But the Messages in the Chat are still English and not German.

And ("sm_redie_adverts", "0") also doeesnt work.
mariozankl is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 05-10-2012 , 18:28   Re: [CSS][Surf] Redie
Reply With Quote #117

Why the Plugin doesn't accept the changes?
Ist it possible that the resie.sp is needless?

Can you help me?
mariozankl is offline
rambomst
SourceMod Donor
Join Date: Nov 2009
Location: Sydney, Australia
Old 05-10-2012 , 18:51   Re: [CSS][Surf] Redie
Reply With Quote #118

You have to compile the redie.sp file for it to work.
__________________
rambomst is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 05-10-2012 , 19:23   Re: [CSS][Surf] Redie
Reply With Quote #119

Can you describe me exactly what you mean?

It's the first time that i work with sourcemod and i don't know what you mean.

And my english is not very good ;)
mariozankl is offline
rambomst
SourceMod Donor
Join Date: Nov 2009
Location: Sydney, Australia
Old 05-10-2012 , 19:53   Re: [CSS][Surf] Redie
Reply With Quote #120

.sp files don't run.

They need to be .smx files.

To make a .sp into a .smx you need to compile it.

To compile it read this.
__________________
rambomst 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 19:09.


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