Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Includes
- #include <sourcemod>
- #include <sdktools>
- #include <multicolors>
- #include <cstrike>
- //Definitions
- #define PLUGIN_VERSION "1.0"
- public Plugin:myinfo =
- {
- name = "Zbran na začátku kola",
- author = "DeadSwim",
- description = "Deagle",
- version = PLUGIN_VERSION,
- url = "www.madgames.eu"
- }
- public OnPluginStart()
- {
- HookEvent("player_spawn", EventPlayerSpawn, EventHookMode_Post);
- }
- public Action:EventPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) {
- new client = GetClientOfUserId(GetEventInt(event, "userid"));
- new team = GetClientTeam(client);
- if (IsPlayerGenericAdmin(client))
- {
- GivePlayerItem(client,"weapon_deagle");
- PrintToChat(client, " [VIP] Jako VIP jsi získal Deagle!");
- }else{
- PrintToChat(client, " [VIP] Aby jsi mohl získat na začátku kola Deagle, kup si VIP!");
- }
- }
- bool:IsPlayerGenericAdmin(client)
- {
- return CheckCommandAccess(client, "generic_admin", ADMFLAG_reservation, false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement