Player Paid Cloak


			hook.Add( "PlayerSay", "CommandIdent6", function( ply, text, amount )
			text:lower()
		if( text == "/cloakme" ) then
		
				if( ply:canAfford(6000)) then
		
			ply:addMoney( -6000 )
		
			local colWhite = Color( 255, 255, 255, 150 ) -- Creates a black color
			ply:SetRenderMode( RENDERMODE_TRANSALPHA )
			ply:SetColor( colWhite ) -- Sets the players color to colBlack
			
				local function Tima( ply )
			local colWhite = Color( 255, 255, 255, 255 ) -- Creates a black color
			ply:SetRenderMode( RENDERMODE_TRANSALPHA )
			ply:SetColor( colWhite ) -- Sets the players color to colBlack
			end
			
		timer.Create("tima1", 15, 1, Tima)
			
		else
		
		DarkRP.notify(ply, 1, 4, "Not Enough Money, It Requires 6K")
		
		end
		end
		end)

So I am having a problem with this. When I type in /cloakme it pays the 6k and cloaks me, but the timer never starts and uncloaks me after 15 seconds, any help is apreciated :slight_smile:

remove the ply in Tima( ply )

Oh that was easy thank you :slight_smile: