Raised This Month: $ Target: $400
 0% 

seek plugin vip respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
svpure
Member
Join Date: Aug 2009
Old 09-23-2013 , 05:26   seek plugin vip respawn
Reply With Quote #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.
svpure 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 04:36.


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