Raised This Month: $ Target: $400
 0% 

Swedish translation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 01-30-2010 , 01:51   Swedish translation
Reply With Quote #1

Can some one traduce this Swedish plugin to English?
The lines are:
- Du är inte en fonge.
- Din statistik po gym:
- [ Knaboj: %d Gonger ]
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>

#define PLUGIN "Jail Break: Silownia"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

new ducks[33]
new 
Float:speeds[] = { 0.05.010.015.025.0 }

new static 
models[][] = { "models/p_bknuckles.mdl""models/v_bknuckles.mdl" }
new static 
sounds[][] = { "weapons/cbar_hitbod2.wav""weapons/cbar_hitbod1.wav""weapons/bullet_hit1.wav""weapons/bullet_hit2.wav" }

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)    
    
    
register_event("CurWeapon""CurWeapon""be""1=1")
    
    
register_forward(FM_PlayerPreThink"PlayerPreThink"0)
    
    
register_forward(FM_EmitSound"EmitSound")
    
    
register_clcmd("say /gym""client_say")
}

public 
client_say(id)
{
    if(
get_user_team(id) != 1)
    {
        
client_print(idprint_chat"Du är inte en fonge.")
        return
    }
    
client_print(idprint_chat"Din statistik po gym:")
    
client_print(idprint_chat"[ Knaboj: %d Gonger ]"ducks[id])
}


public 
client_disconnect(id)
{
    
ducks[id] = 0
}

public 
PlayerPreThink(id)
{
    if(!
is_user_alive(id))
        return 
FMRES_IGNORED
    
    
if(pev(idpev_oldbuttons) & IN_DUCK && !(pev(idpev_button) & IN_DUCK) && get_user_team(id) == 1)
    {
        static 
s_iFlags
        s_iFlags 
pev(idpev_flags)
        if(
/*!*/(s_iFlags FL_DUCKING)/* && pev(id, pev_bInDuck)*/)
        {
            
ducks[id] ++            
        }
    }
    
    return 
FMRES_IGNORED;
}

public 
plugin_precache()
{
    static 
i
    
for(0sizeof modelsi++)
    {
        
precache_model(models[i])
    }    
    for(
0sizeof soundsi++)
    {
        
precache_sound(sounds[i])
    }
}

public 
CurWeapon(id)
{
    if(
is_user_alive(id) && get_user_team(id) == 1)
    {
        if(
read_data(2) == 29)
        {
            
set_pev(idpev_viewmodel2models[1])
            
set_pev(idpev_weaponmodel2models[0])
        }
            
        switch(
ducks[id])
        {                
            case 
50 .. 100fm_set_user_maxspeed(idfm_get_user_maxspeed(id) + speeds[1])    
                case 
101 .. 200fm_set_user_maxspeed(idfm_get_user_maxspeed(id) + speeds[2])
                case 
201 .. 300fm_set_user_maxspeed(idfm_get_user_maxspeed(id) + speeds[3])
                case 
301 .. 1000fm_set_user_maxspeed(idfm_get_user_maxspeed(id) + speeds[4])    
                default: {}
        }
    }    
}

public 
EmitSound(idchannelsample[])
{
    if(
is_user_alive(id) && get_user_team(id) == 1)
    {
        if(
equal(sample"weapons/knife_"14)) 
        {
            if(
equal(sample"weapons/knife_hit"17)) 
            {
                
emit_sound(idCHAN_WEAPON"weapons/bullet_hit2.wav"random_float(0.51.0), ATTN_NORM0PITCH_NORM)
                return 
FMRES_SUPERCEDE
            
}
            else if(
equal(sample,"weapons/knife_stab.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"weapons/cbar_hitbod2.wav"1.0ATTN_NORM0PITCH_NORM)    
                return 
FMRES_SUPERCEDE
            
}
            else if(
equal(sample,"weapons/knife_hitwall1.wav"))
            {
                
emit_sound(idCHAN_WEAPON"weapons/cbar_hitbod1.wav"1.0ATTN_NORM0PITCH_LOW)
                return 
FMRES_SUPERCEDE            
            
}        
        }
    }    
    return 
FMRES_IGNORED

__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 02-03-2010 , 04:52   Re: Swedish translation
Reply With Quote #2

Du är inte en fonge.

You're not a convict/inmate/prisoner (use whichever of those you wish).

Din statistik po gym:

Your statistics at the gym:

[ Knaboj: %d Gonger ]

[ Ducked: %d Times ]

Directly translated, Knaboj would mean kneebends, but that makes no sense. Since it counts how many times you crouch you may as well replace it with ducked.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
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 08:55.


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