Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- #define PLUGIN_VERSION "0.1"
- public Plugin:myinfo =
- {
- name = "[L4D2] Force to Infected",
- author = "Me",
- description = "As plugins name say",
- version = PLUGIN_VERSION,
- url = ""
- }
- public bool:OnClientConnect(client, String:rejectmsg[], maxlen)
- {
- CreateTimer(60.0, TimeSwitch, client);
- return true;
- }
- public Action:TimeSwitch(Handle:timer, any:client)
- {
- if(IsClientInGame(client))
- {
- ClientCommand(client,3);
- }
- else if(IsClientConnected(client))
- {
- CreateTimer(60.0, TimeSwitch, client);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement