Thread: [TF2] Cakevich
View Single Post
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 09-08-2011 , 16:56   Re: [TF2] Cakevich
Reply With Quote #10

Simple and nice plugin. Thanks for sharing.

Codewise, I believe you could change this :

Code:
	for (new i = 0; i <= MaxClients; i++)
	{
		OnClientPutInServer(i);
	}
to this :

Code:
	for (new i = 1; i <= MaxClients; i++)
	{
		OnClientPutInServer(i);
	}
edit :
Quote:
Originally Posted by wawazy View Post
ok ty


but can you make it work automaticly no need to type command ??

ty

wa
change line #69 :

Code:
public OnClientPutInServer(client) cake[client] = 0;
to

Code:
public OnClientPutInServer(client) cake[client] = 1;
(or 2 for big cakes)

and recompile. Not tested but it should work as it did, but with everyone's default set to drop cakes.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 09-08-2011 at 16:59.
RedSword is offline