Quantcast
Channel: Forum VeryGames
Viewing all articles
Browse latest Browse all 5196

[Partage] Plusieur Plugin

$
0
0
Salut la jeunesse ^^

Je vous fait par de quelque plugins ^^.

Plugin /plainte.

Code PHP:

#include <morecolors>

new g_plainte[MAXPLAYERS+1] = 0;

public 
Plugin:myinfo 
{
    
name "plainte",
    
author "Steven",
    
version "1.0",
};

public 
OnPluginStart()
{
    
RegConsoleCmd("sm_plainte"Command_Plainte);
}

public 
Action:Command_Plainte(clientargs)
{
    if (
client && IsClientInGame(client))
    {
        if (
args 1)
        {
            
ReplyToCommand(client"[Sheez-RP] : Utilisation: /plainte <message COMPLET>");
            return 
Plugin_Handled;
        }
        
        new 
timestamp;
        
timestamp GetTime();
        
        if ((
timestamp g_plainte[client]) < 60)
        {
            
ReplyToCommand(client"{red} [PLAINTE] Vous devez attendre %i secondes avant de refaire une plainte", ( 60 - (timestamp g_plainte[client])) );
            return 
Plugin_Handled;
        }
        
        
g_plainte[client] = GetTime();
        new 
String:message[128];
        
        
GetCmdArgString(messagesizeof(message));
        
        for(new 
i=1<= GetMaxClients(); i++)
        {
            if ((
IsClientInGame(i)) && GetUserFlagBits(i) & ADMFLAG_SLAY || GetUserFlagBits(i) & ADMFLAG_ROOT)
            {
                
CPrintToChat(i"{red} [PLAINTE] de %N : %s"clientmessage);
            }
        }
        
        
CPrintToChat(client"{red} [PLAINTE] Votre plainte a bien été envoyée, merci d'être patient.");
        
        return 
Plugin_Handled;
    }
    
    return 
Plugin_Handled;


Plugin CacheKill {ROLEPLAY}

Code PHP:

#include <sourcemod>

public Plugin:myinfo =
{
name "Cache",
author "Protect",
version "1.0",
};

public 
OnPluginStart()
{
HookEvent("player_death"OnDeathPreEventHookMode_Pre);
}

public 
OnDeathPre(Handle:eventString:name[], bool:DontBroadCast)
{
return 
Plugin_Handled;


Plugin : Enlever le message dan le chat "Vous attaquez un coéquipier" 'ROLEPLAY OU AUTRE}
Code PHP:


public Plugin:myinfo =
{
name "Enlever Message Kill RP",
author "Protect",
version "1.0",
};

new 
UserMsg:g_textmsg;

public 
OnPluginStart()
{
    
g_textmsg GetUserMessageId("TextMsg");
    
HookUserMessage(g_textmsgUserMessageHooktrue);
}

public 
Action:UserMessageHook(UserMsg:msg_idHandle:bf, const players[], playersNumbool:reliablebool:init)
{
    
decl String:message[256];
    
BfReadString(bfmessagesizeof(message));
    if (
StrContains(message"teammate_attack") != -1)
    {
        return 
Plugin_Handled;
    }
    return 
Plugin_Continue

Plugin : DV

Code PHP:

#include <sdktools>
#include <sourcemod>
#include <colors>
 
#define MAX_FILE_LEN 256
 
public Plugin:myinfo =
{
    
name "*~ Plugin DV ~*",
    
author "Delachambre",
    
description "Annonce la DV",
    
version "1.0",
    
url "http://vip-magnetik.fr/"
}
 
public 
OnPluginStart()
{  
        
HookEvent("player_death"Event_PlayerDeath);
       
        
RegConsoleCmd("sm_dv"Cmd_Dv);
}
 
public 
Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
victim GetClientOfUserId(GetEventInt(event"userid"));
    if (
GetClientTeam(victim) == 2)
    {
        
decl Ts;
        for(new 
i=1MaxClientsi++)
        {
            if (
IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == 2)
            {
                
Ts++;
            }
        }
        if (
Ts == 1)
                {
                        
PrintCenterTextAll("==========> DERNIERE VOLONTEE <==========");
                        {
                                
CPrintToChatAll("{red}======== DERNIERE VOLONTEE ========");
                                
CPrintToChatAll("{red}Le dernier T a accès a sa DV");
                                
CPrintToChatAll("{red}Il peut tapé !dv");
                                
CPrintToChatAll("{red}======== DERNIERE VOLONTEE ========");
                                
ServerCommand("sm_tsay pink => DV <=");
                        }
                }
    }
}
 
public 
Action:Cmd_Dv(clientargs)
{
        new 
Ts;
        for(new 
i=1<= GetMaxClients(); i++)
                {
                        if (
IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == 2)
                        {
                                
Ts++;
                        }
                }
        if ((
GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)) && (Ts == 1))
        {
                new 
Handle:menu CreateMenu(dvmenu);
                
SetMenuTitle(menu"Choisis ta DV :");
                
AddMenuItem(menu"Cut""Combat de Cut");
                
AddMenuItem(menu"Roulette""Roulette");
                
AddMenuItem(menu"Isoloir""Isoloire");
                
AddMenuItem(menu"Planchepirate""Planche pirate");
                
AddMenuItem(menu"Roulettechinoise""Roulette chinoise");
                
AddMenuItem(menu"Cutaquatique""Cut aquatique");
                
DisplayMenu(menuclient15);
        }
        else
        {
                
CPrintToChat(client"{green}[JailMod] : {lightgreen}Vous n'avez pas accès a cette commande.");
        }
}
 
public 
dvmenu(Handle:menuMenuAction:actionclientparam2)
{      
        if (
action == MenuAction_Select)
        {
                new 
String:info[32];
                
GetMenuItem(jail_menuparam2infosizeof(info));
               
                for (new 
1MaxClientsi++)
                {
                        if (
StrEqual(info"Cut"))
                        {
                                
CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis un combat de cut.");
                                
PrintCenterTextAll("=====> DV : CUT <=====");
               
                                new 
Float:origincut[3]
                                
origincut[0] =  -2774.0
                                origincut
[1] =  -1255.7
                                origincut
[2] =  128.0
               
                                
if ((GetClientTeam(client) == 2) && IsPlayerAlive(client))
                                {
                                        
SetEntityHealth(client200);
                                        
TeleportEntity(clientorigincutNULL_VECTORNULL_VECTOR);
                                }
                                
TeleportEntity(iorigincutNULL_VECTORNULL_VECTOR);
                                
SetEntityHealth(i200);
                        }
               
                        if (
StrEqual(info"Roulette"))
                        {
                                
CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis une roulette normal.");
                                
PrintCenterTextAll("=====> DV : ROULETTE <=====");
                       
                                new 
Float:originrou[3]
                                
originrou[0] =  -337.7
                                originrou
[1] =  195.5
                                originrou
[2] =  128.0
                       
                                
if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                {
                                        
GivePlayerItem(client"weapon_deagle");
                                        
SetEntityHealth(client100);
                                        
TeleportEntity(clientoriginrouNULL_VECTORNULL_VECTOR);
                                }
                       
                                
TeleportEntity(ioriginrouNULL_VECTORNULL_VECTOR);
                                
GivePlayerItem(i"weapon_deagle");
                                
SetEntityHealth(i100);
                        }
               
                        if (
StrEqual(info"Isoloir"))
                        {
                                
CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis un isoloire.");
                                
PrintCenterTextAll("=====> DV : ISOLOIRE <=====");
                                new 
Float:originiso[3]
                       
                                
originiso[0] =  -1429.7
                                originiso
[1] =  -723.7
                                originiso
[2] =  129.0
                       
                                
if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                {
                                        
GivePlayerItem(client"weapon_m249");
                                        
SetEntityHealth(client400);
                                        
TeleportEntity(clientoriginisoNULL_VECTORNULL_VECTOR);
                                }
                                
TeleportEntity(ioriginisoNULL_VECTORNULL_VECTOR);
                                
SetEntityHealth(i400);
                        }
 
                        if (
StrEqual(info"Planchepirate"))
                        {
                                
CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis une planche pirate.");
                                
PrintCenterTextAll("=====> DV : PLANCHE PIRATE <=====");
                       
                                new 
Float:origin[3]
                                
origin[0] =  -285.8
                                origin
[1] =  2240.6
                                origin
[2] =  128.0
                       
                                
if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                {
                                        
GivePlayerItem(client"weapon_deagle");
                                        
SetEntityHealth(client100);
                                        
TeleportEntity(clientoriginNULL_VECTORNULL_VECTOR);
                                }
                       
                                
TeleportEntity(ioriginNULL_VECTORNULL_VECTOR);
                                
SetEntityHealth(i100);
                                
GivePlayerItem(i"weapon_deagle");
                        }
 
                        if (
StrEqual(info"Roulettechinoise"))
                        {
                                
CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis une roulette chinoise.");
                                
PrintCenterTextAll("=====> DV : ROULETTE CHINOISE <=====");
                       
                                new 
Float:originchi[3]
                                
originchi[0] =  -1193.1
                                originchi
[1] =  260.7
                                originchi
[2] =  264.0
                       
                                
if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                {
                                        
GivePlayerItem(client"weapon_deagle");
                                        
SetEntityHealth(client100);
                                        
TeleportEntity(clientoriginchiNULL_VECTORNULL_VECTOR);
                                }
                                
TeleportEntity(ioriginchiNULL_VECTORNULL_VECTOR);
                                
SetEntityHealth(i100);
                                
GivePlayerItem(i"weapon_deagle");
                        }
 
                        if (
StrEqual(info"Cutaquatique"))
                        {
                                
CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis un cut aquatique.");
                                
PrintCenterTextAll("=====> DV : CUT AQUATIQUE <=====");
                                new 
Float:originaqua[3]
                                
originaqua[0] =  -191.6
                                originaqua
[1] =  2527.0
                                originaqua
[2] =  274.3
                                
if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                {
                                        
TeleportEntity(clientoriginaquaNULL_VECTORNULL_VECTOR);
                                }
                                
TeleportEntity(ioriginaquaNULL_VECTORNULL_VECTOR);
                        }
                }
        }
        else if (
action == MenuAction_End)
        {
                
CloseHandle(menu);
        }


Plugin : /regles

Code PHP:


    
#include <sourcemod>
    #include <smlib>
    #include <sdktools>
    #include <cstrike>
     
     
    
public OnPluginStart()
    {
    
RegConsoleCmd("sm_regles"Command_Regles);
    }
     
    public 
OnClientPutInServer(client)
    {
    
CreateTimer(30.0Timer_Regles);
    }
     
    public 
Action:Command_Regles(clientargs)
    {
    
PrintToChat(client".:Nom de votre team:.\n\n------------------\n\n\n- Pas de kill au spawn -\n- Pas de kill sur la première ramp -\n- Pas d'insultes envers qui que ce soit -\n\n\n------------------");
    }
     
    public 
Action:Timer_Regles(Handle:timerany:client)
    {
                    
PrintToChat(client"\x04[.:Nom de votre team:.] \x01Si vous ne connaissez pas les règles, tapez !regles.");
    } 

Si par hasard , le plugin d'une personne y est , est que le créateur ne veut pas le partager , m'en fait savoir :)
Voila ^^ J'ajouterais au fur et a mesure !

Viewing all articles
Browse latest Browse all 5196

Trending Articles


Vimeo 10.7.1 by Vimeo.com, Inc.


UPDATE SC IDOL: TWO BECOME ONE


KASAMBAHAY BILL IN THE HOUSE


Girasoles para colorear


Presence Quotes – Positive Quotes


EASY COME, EASY GO


Love with Heart Breaking Quotes


Re:Mutton Pies (lleechef)


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo 10.7.0 by Vimeo.com, Inc.


FORECLOSURE OF REAL ESTATE MORTGAGE


FORTUITOUS EVENT


Pokemon para colorear


Sapos para colorear


Smile Quotes


Letting Go Quotes


Love Song lyrics that marks your Heart


RE: Mutton Pies (frankie241)


Hato lada ym dei namar ka jingpyrshah jong U JJM Nichols Roy (Bah Joy) ngin...


Long Distance Relationship Tagalog Love Quotes