package paintCheck
{
function servercmdUseSprayCan(%cl,%num)
{
Parent::ServercmdUseSprayCan(%cl,%num);
%cl.spray = %num;
}
function gameconnection::spawnplayer(%this,%a,%b,%c)
{
Parent::spawnplayer(%this,%a,%b,%c);
%this.spray = "";
}
};
Couldn't remember whether ::spawnPlayer took a transform, the extra arguments won't affect anything.
%client.spray will be "" if no spray can has been used/you just spawned or the number of the last used spray can.