|
Author
|
Message
|
|
Member
|

09-23-2013
, 05:26
seek plugin vip respawn
|
#1
|
i seek plugin vip for 1 respawn i have problem my plugin "server crach"
Quote:
# Include <sdktools>
# include <cstrike>
# Define PLUGIN_VERSION «0.1a»
nouveau PlayerRespawn [maxplayers +1];
Plugin publique: myinfo = {
name = "Respawn",
author = "Templierzekk»,
version = PLUGIN_VERSION,
Description = "! respawn aux VIP pour Kriax Vg."
url = ""
};
publique OnPluginStart ()
{
HookEvent ("player_spawn", PlayerSpawn);
RegConsoleCmd ("sm_respawn", Cmd_Respawn);
}
action publique: PlayerSpawn (Handle: événement, String const: nom [], bool: dontBroadcast)
{
nouveau client = GetClientOfUserId (GetEventInt (événement, "userid"));
if (GetUserFlagBits (client) et ADMFLAG_CUSTOM4)
{
PlayerRespawn [client] = 1;! / / NOMBRE de respawn par vip
}
autre
{
PlayerRespawn [client] = 0;
}
}
action publique: Cmd_Respawn (client, args)
{
if (GetUserFlagBits (client) et ADMFLAG_CUSTOM4)
{
if (PlayerRespawn [client]> 0)
{
CS_RespawnPlayer (client);
PrintToChat (client, "\ x04 [VIP]:. Vous AVEZ used Votre respawn coulée CE ronde");
PlayerRespawn [client] -;
}
autre
{
PrintToChat (client, "\ x04 [VIP]:. Vous AVEZ Déjà used le respawn coulée CE ronde");
}
}
autre
{
PrintToChat (client, "\ x04 [VIP]:. Vous n'avez Pas ACCES une commande this");
}
}
|
__________________
Last edited by svpure; 09-23-2013 at 05:27.
|
|
|
|